From 7f6e986317770054e21f11632c5434c0bef05e4f Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Tue, 31 Jan 2017 09:22:14 -0800 Subject: [PATCH] More incorrect screenshot JNI code. Not sure why we aren't getting warnings but these casts are to the wrong type. Bug: 34758075 Test: Manual Change-Id: I6b9fc0500762c34379f4de56e0b5a66e6f17d87d --- 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 ab3e3113e1a2a..7ffdbe8d77f9f 100644 --- a/core/jni/android_view_SurfaceControl.cpp +++ b/core/jni/android_view_SurfaceControl.cpp @@ -260,7 +260,7 @@ static void nativeScreenshot(JNIEnv* env, jclass clazz, jobject displayTokenObj, } ScreenshotClient::capture(displayToken, consumer->getIGraphicBufferProducer(), sourceCrop, - width, height, uint32_t(minLayer), uint32_t(maxLayer), + width, height, minLayer, maxLayer, useIdentityTransform); } }