diff options
author | 2015-08-20 08:47:26 -0700 | |
---|---|---|
committer | 2015-08-20 08:47:26 -0700 | |
commit | ddbbddabefe865cc52e4b89a9d45455b987129bd (patch) | |
tree | dac7bc153f4623b6efb980985734478b93033355 /include/core/SkImage.h | |
parent | 7d173403f47bb85cfd5c42b69c734668e25e47f9 (diff) |
SkImage method for detecting lazy decoding
BUG=skia:4224
R=reed@google.com
Review URL: https://codereview.chromium.org/1305453007
Diffstat (limited to 'include/core/SkImage.h')
-rw-r--r-- | include/core/SkImage.h | 6 |
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); |