aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkImage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkImage.h')
-rw-r--r--include/core/SkImage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 2a62135bdb..5b9e203175 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -288,6 +288,12 @@ public:
*/
bool asLegacyBitmap(SkBitmap*, LegacyBitmapMode) const;
+ /**
+ * Returns true if the image is backed by an image-generator or other src that creates
+ * (and caches) its pixels / texture on-demand.
+ */
+ bool isLazyGenerated() const;
+
protected:
SkImage(int width, int height, uint32_t uniqueID);