Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: src/effects/SkPixelXorXfermode.cpp

Issue 1647963002: Fix SkPixelXorXfermode serialization bug (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkPixelXorXfermode.cpp
diff --git a/src/effects/SkPixelXorXfermode.cpp b/src/effects/SkPixelXorXfermode.cpp
index a9316cc55e4660492bbbbd346a6964fda87b48b2..e0ae146dda5886a4e74d14b0a29b4c08245c0c6b 100644
--- a/src/effects/SkPixelXorXfermode.cpp
+++ b/src/effects/SkPixelXorXfermode.cpp
@@ -21,7 +21,9 @@ SkPMColor SkPixelXorXfermode::xferColor(SkPMColor src, SkPMColor dst) const {
}
void SkPixelXorXfermode::flatten(SkWriteBuffer& wb) const {
- wb.writeColor(fOpColor);
+ wb.writeColor(SkColorSetRGB(SkGetPackedR32(fOpColor),
+ SkGetPackedG32(fOpColor),
+ SkGetPackedB32(fOpColor)));
}
SkFlattenable* SkPixelXorXfermode::CreateProc(SkReadBuffer& buffer) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698