Index: include/core/SkImage.h |
diff --git a/include/core/SkImage.h b/include/core/SkImage.h |
index c9c56684604f8b1f12406c67593ed7e0b4b129fc..c0f37c33022618a974b07a839387f0aa4fad8df7 100644 |
--- a/include/core/SkImage.h |
+++ b/include/core/SkImage.h |
@@ -330,6 +330,11 @@ public: |
sk_sp<SkImage> makeTextureImage(GrContext*) const; |
/** |
+ * If the image is texture-backed this will make a raster copy of it (or nullptr if reading back |
+ * the pixels fails). Otherwise, it returns the original image. |
+ */ |
+ sk_sp<SkImage> makeNonTextureImage() const; |
+ /** |
* Apply a given image filter to this image, and return the filtered result. |
* |
* The subset represents the active portion of this image. The return value is similarly an |