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

Unified Diff: include/effects/SkPixelXorXfermode.h

Issue 1646453003: Make SkPixelXorXfermode's opColor be SkPMColor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT 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 | src/effects/SkPixelXorXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkPixelXorXfermode.h
diff --git a/include/effects/SkPixelXorXfermode.h b/include/effects/SkPixelXorXfermode.h
index c248de6cc1db0207ef32de8f92e8c2d66e211120..4aa78ccf5e417e04fad97e554dbbcf0cc94988b1 100644
--- a/include/effects/SkPixelXorXfermode.h
+++ b/include/effects/SkPixelXorXfermode.h
@@ -36,9 +36,11 @@ protected:
SkPMColor xferColor(SkPMColor src, SkPMColor dst) const override;
private:
- explicit SkPixelXorXfermode(SkColor opColor) : fOpColor(opColor) {}
+ explicit SkPixelXorXfermode(SkColor opColor) {
+ fOpColor = SkPreMultiplyColor(opColor | 0xFF000000);
+ }
- SkColor fOpColor;
+ SkPMColor fOpColor;
typedef SkXfermode INHERITED;
};
« no previous file with comments | « no previous file | src/effects/SkPixelXorXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698