Index: src/image/SkImage_Gpu.h |
diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h |
index 5faaa7526b20359efcd5fb306c40b85a0400218d..44949a13ac82b45f769c1bf5951dd6ccaf4f6a3d 100644 |
--- a/src/image/SkImage_Gpu.h |
+++ b/src/image/SkImage_Gpu.h |
@@ -43,6 +43,10 @@ public: |
sk_sp<SkImage> onMakeSubset(const SkIRect&) const override; |
GrTexture* peekTexture() const override { return fTexture; } |
+ sk_sp<GrTexture> refPinnedTexture(uint32_t* uniqueID) const override { |
+ *uniqueID = this->uniqueID(); |
+ return sk_ref_sp(fTexture.get()); |
+ } |
bool isOpaque() const override; |
bool onReadPixels(const SkImageInfo&, void* dstPixels, size_t dstRowBytes, |
int srcX, int srcY, CachingHint) const override; |