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

Unified Diff: bench/ShaderMaskBench.cpp

Issue 248033003: Remove support for inheriting the paint color from SkColorShader (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fColor -> color Created 6 years, 8 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 | bench/valgrind.supp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/ShaderMaskBench.cpp
diff --git a/bench/ShaderMaskBench.cpp b/bench/ShaderMaskBench.cpp
index bf04981bec34ffb82910923429b046d97fbb45e5..7323d8ee7aaeff4504f21850b9c9e4bf05ee6db4 100644
--- a/bench/ShaderMaskBench.cpp
+++ b/bench/ShaderMaskBench.cpp
@@ -44,8 +44,7 @@ public:
fPaint.setAntiAlias(kBW != fq);
fPaint.setLCDRenderText(kLCD == fq);
- fPaint.setAlpha(isOpaque ? 0xFF : 0x80);
- fPaint.setShader(new SkColorShader)->unref();
+ fPaint.setShader(new SkColorShader(isOpaque ? 0xFFFFFFFF : 0x80808080))->unref();
}
protected:
« no previous file with comments | « no previous file | bench/valgrind.supp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698