Merge "Fix TextureView calling eglCreateImage with a destructed buffer" into rvc-dev am: 1ca53a0901 am: b397305d4a am: 65658a2260
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12173850 Change-Id: I48897aabae89718d392e0e571ca689a549910bb4
This commit is contained in:
@@ -149,6 +149,9 @@ void DeferredLayerUpdater::apply() {
|
||||
sk_sp<SkImage> layerImage = mImageSlots[slot].createIfNeeded(
|
||||
hardwareBuffer, dataspace, newContent,
|
||||
mRenderState.getRenderThread().getGrContext());
|
||||
// unref to match the ref added by ASurfaceTexture_dequeueBuffer. eglCreateImageKHR
|
||||
// (invoked by createIfNeeded) will add a ref to the AHardwareBuffer.
|
||||
AHardwareBuffer_release(hardwareBuffer);
|
||||
if (layerImage.get()) {
|
||||
SkMatrix textureTransform;
|
||||
mat4(transformMatrix).copyTo(textureTransform);
|
||||
|
||||
Reference in New Issue
Block a user