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

Unified Diff: gm/arithmode.cpp

Issue 16034013: Remove unpremul/remul from SkArithmeticMode, both raster and GPU, since the SVG spec actually defin… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix keygen. Created 7 years, 6 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 | gm/xfermodeimagefilter.cpp » ('j') | include/effects/SkArithmeticMode.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/arithmode.cpp
diff --git a/gm/arithmode.cpp b/gm/arithmode.cpp
index 63be6c387166660f22c03bcc98c3baad3ecac90a..ab509f86f8bad4d7746da952973b1eaeac3de107 100644
--- a/gm/arithmode.cpp
+++ b/gm/arithmode.cpp
@@ -111,7 +111,7 @@ protected:
SkRect rect = SkRect::MakeXYWH(x, y, SkIntToScalar(WW), SkIntToScalar(HH));
canvas->saveLayer(&rect, NULL);
canvas->drawBitmap(dst, x, y, NULL);
- SkXfermode* xfer = SkArithmeticMode::Create(k[0], k[1], k[2], k[3]);
+ SkXfermode* xfer = SkArithmeticMode::Create(k[0], k[1], k[2], k[3], true);
SkPaint paint;
paint.setXfermode(xfer)->unref();
canvas->drawBitmap(src, x, y, &paint);
« no previous file with comments | « no previous file | gm/xfermodeimagefilter.cpp » ('j') | include/effects/SkArithmeticMode.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698