Index: include/core/SkImage.h |
diff --git a/include/core/SkImage.h b/include/core/SkImage.h |
index fd20e5e0e521f712848be9bdd5d6d2c481d2cd99..bdcb5b0abeec6ef68fa9780f27b002573f7eb96f 100644 |
--- a/include/core/SkImage.h |
+++ b/include/core/SkImage.h |
@@ -166,7 +166,8 @@ public: |
SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } |
SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); } |
uint32_t uniqueID() const { return fUniqueID; } |
- virtual bool isOpaque() const { return false; } |
+ SkAlphaType alphaType() const; |
+ bool isOpaque() const { return SkAlphaTypeIsOpaque(this->alphaType()); } |
/** |
* Extracts YUV planes from the SkImage and stores them in client-provided memory. The sizes |