aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar piotaixr <piotaixr@chromium.org>2014-08-19 14:29:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-19 14:29:02 -0700
commitd2a3522503ca0c39829f1bb41f01201d1affdaf6 (patch)
tree679b036538b2440e560b74105d19adcf7ace7b02 /include
parent1d89ddc4a3aad153501cfdc93bc1d61eb49157f4 (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.h2
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