diff options
author | piotaixr <piotaixr@chromium.org> | 2014-08-19 14:29:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-19 14:29:02 -0700 |
commit | d2a3522503ca0c39829f1bb41f01201d1affdaf6 (patch) | |
tree | 679b036538b2440e560b74105d19adcf7ace7b02 /include | |
parent | 1d89ddc4a3aad153501cfdc93bc1d61eb49157f4 (diff) |
Add the method isOpaque() to SkImage
BUG=skia:2766
R=junov@chromium.org, halcanary@google.com, scroggo@google.com, reed@google.com, bsalomon@google.com
Author: piotaixr@chromium.org
Review URL: https://codereview.chromium.org/406673003
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkImage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h index 1316e2b595..1f275149b8 100644 --- a/include/core/SkImage.h +++ b/include/core/SkImage.h @@ -48,6 +48,8 @@ public: */ static SkImage* NewTexture(const SkBitmap&); + virtual bool isOpaque() const { return false; } + /** * Construct a new SkImage based on the given ImageGenerator. * This function will always take ownership of the passed |