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

Unified Diff: gm/lumafilter.cpp

Issue 26467003: Align SkLumaColorFilter with the spec. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Use kRGB_GrColorComponentFlags. Created 7 years, 2 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 | include/effects/SkLumaColorFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/lumafilter.cpp
diff --git a/gm/lumafilter.cpp b/gm/lumafilter.cpp
index 69a4f073f0a200258854ca941bac0c089a89c764..c12bae0ba537e2bba9362dd0314339cfa5d1d447 100644
--- a/gm/lumafilter.cpp
+++ b/gm/lumafilter.cpp
@@ -34,6 +34,7 @@ static void draw_scene(SkCanvas* canvas, SkColorFilter* filter,
c = bounds;
c.fRight = bounds.centerX();
+ paint.setARGB(0x20, 0, 0, 0xff);
canvas->drawRect(bounds, paint);
canvas->saveLayer(&bounds, NULL);
« no previous file with comments | « no previous file | include/effects/SkLumaColorFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698