Index: src/core/SkPixelRef.cpp |
diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp |
index 10e1309c0b1af377268a0bdb30f4de2f9b61dee3..507a4fcd48c92a0849129aa85c5aabef2bfedacb 100644 |
--- a/src/core/SkPixelRef.cpp |
+++ b/src/core/SkPixelRef.cpp |
@@ -254,12 +254,13 @@ void SkPixelRef::callGenIDChangeListeners() { |
fGenIDChangeListeners.deleteAll(); |
} |
-void SkPixelRef::notifyPixelsChanged() { |
+void SkPixelRef::notifyPixelsChanged(SkAlphaType at) { |
#ifdef SK_DEBUG |
if (fIsImmutable) { |
SkDebugf("========== notifyPixelsChanged called on immutable pixelref"); |
} |
#endif |
+ *const_cast<SkAlphaType*>(&fInfo.fAlphaType) = at; |
this->callGenIDChangeListeners(); |
this->needsNewGenID(); |
} |