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
This commit is contained in:
Robert Carr
2017-01-31 09:22:14 -08:00
parent cb07efbf74
commit 7f6e986317

View File

@@ -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);
}
}