aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkBitmap.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index 2b84c098af..61a4c8f7a5 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -828,8 +828,10 @@ bool SkBitmap::extractSubset(SkBitmap* result, const SkIRect& subset) const {
SkBitmap dst;
dst.setConfig(this->config(), r.width(), r.height(), this->rowBytes());
- dst.setIsOpaque(this->isOpaque());
dst.setIsVolatile(this->isVolatile());
+#ifndef SK_DISABLE_EXTRACTSUBSET_OPAQUE_FIX
+ dst.setIsOpaque(this->isOpaque());
+#endif
if (fPixelRef) {
// share the pixelref with a custom offset