aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrAHardwareBufferImageGenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrAHardwareBufferImageGenerator.cpp')
-rw-r--r--src/gpu/GrAHardwareBufferImageGenerator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrAHardwareBufferImageGenerator.cpp b/src/gpu/GrAHardwareBufferImageGenerator.cpp
index 74073adeef..085d27ac10 100644
--- a/src/gpu/GrAHardwareBufferImageGenerator.cpp
+++ b/src/gpu/GrAHardwareBufferImageGenerator.cpp
@@ -229,7 +229,10 @@ sk_sp<GrTextureProxy> GrAHardwareBufferImageGenerator::makeProxy(GrContext* cont
eglDestroyImageKHR(display, image);
return nullptr;
}
- tex->setRelease(deleteImageTexture, new BufferCleanupHelper(image, display));
+ sk_sp<GrReleaseProcHelper> releaseHelper(
+ new GrReleaseProcHelper(deleteImageTexture, new BufferCleanupHelper(image, display)));
+
+ tex->setRelease(std::move(releaseHelper));
// We fail this assert, if the context has changed. This will be fully handled after
// skbug.com/6812 is ready.