Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index 9febeaa96e12daf5d4d962a755688dd35562e97b..b8c89645b2fed5409f5a8ecb7a9c531cb17d7da8 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -511,3 +511,17 @@ sk_sp<SkImage> SkImageDeserializer::makeFromMemory(const void* data, size_t leng |
const SkIRect* subset) { |
return SkImage::MakeFromEncoded(SkData::MakeWithCopy(data, length), subset); |
} |
+ |
+/////////////////////////////////////////////////////////////////////////////////////////////////// |
+ |
+void SkImage_pinAsTexture(const SkImage* image, GrContext* ctx) { |
+ SkASSERT(image); |
+ SkASSERT(ctx); |
+ as_IB(image)->onPinAsTexture(ctx); |
+} |
+ |
+void SkImage_unpinAsTexture(const SkImage* image, GrContext* ctx) { |
+ SkASSERT(image); |
+ SkASSERT(ctx); |
+ as_IB(image)->onUnpinAsTexture(ctx); |
+} |