From d87f3cf0dedea9c89ad2f18bdde62d281f7fec6d Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Wed, 7 Mar 2018 14:08:09 -0800 Subject: [PATCH] Update JNI to call captureChildLayers All current usage of captureChildLayers prefers this variant. Bug: 72760590 Test: Manual, go/wm-smoke, screenshots work. Change-Id: I5e53e8a01877f8e2e7efcde3384afee961e43e42 --- core/jni/android_view_SurfaceControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/android_view_SurfaceControl.cpp b/core/jni/android_view_SurfaceControl.cpp index 8ca506254f740..ef3c91d230aaa 100644 --- a/core/jni/android_view_SurfaceControl.cpp +++ b/core/jni/android_view_SurfaceControl.cpp @@ -290,7 +290,7 @@ static jobject nativeCaptureLayers(JNIEnv* env, jclass clazz, jobject layerHandl } sp buffer; - status_t res = ScreenshotClient::captureLayers(layerHandle, sourceCrop, frameScale, &buffer); + status_t res = ScreenshotClient::captureChildLayers(layerHandle, sourceCrop, frameScale, &buffer); if (res != NO_ERROR) { return NULL; }