Index: gm/deferredtextureimagedata.cpp |
diff --git a/gm/deferredtextureimagedata.cpp b/gm/deferredtextureimagedata.cpp |
index 951e8dbe2bcf900938ec4edcc9745c11e523356a..3cb1f24a77ef0d094d1b59e5e68414cf3e0dff6c 100644 |
--- a/gm/deferredtextureimagedata.cpp |
+++ b/gm/deferredtextureimagedata.cpp |
@@ -27,7 +27,8 @@ static bool DrawDeferredTextureImageData(GrContext* context, SkCanvas* canvas, S |
std::vector<uint8_t> memory; |
memory.resize(deferredSize); |
- image->getDeferredTextureImageData(*context->threadSafeProxy(), params, 1, memory.data()); |
+ SkAutoTUnref<GrContextThreadSafeProxy> proxy(context->threadSafeProxy()); |
+ image->getDeferredTextureImageData(*proxy, params, 1, memory.data()); |
sk_sp<SkImage> uploadedImage = |
SkImage::MakeFromDeferredTextureImageData(context, memory.data(), SkBudgeted::kNo); |
canvas->drawImage(uploadedImage, x, y); |