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

Unified Diff: gm/blend.cpp

Issue 1262703002: make tests portable by using 565 compatible colors (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix dstreadshuffle text portable gm Created 5 years, 5 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 | « gm/bitmaprect.cpp ('k') | gm/bmpfilterqualityrepeat.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/blend.cpp
diff --git a/gm/blend.cpp b/gm/blend.cpp
index 90453a52246a2e668208a5898f25452b8b829e6c..a89ecfe46d07defb574275d9c6253ed4b6e7e870 100644
--- a/gm/blend.cpp
+++ b/gm/blend.cpp
@@ -29,7 +29,7 @@ DEF_SIMPLE_GM(blend, canvas, 300, 100) {
p.setColor(SK_ColorRED);
canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
canvas->saveLayerAlpha(NULL, 0xFC);
- p.setColor(0xFF008000);
+ p.setColor(sk_tool_utils::color_to_565(0xFF008000));
canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p);
canvas->restore();
canvas->restore();
« no previous file with comments | « gm/bitmaprect.cpp ('k') | gm/bmpfilterqualityrepeat.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698