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

Unified Diff: gm/aaclip.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 | « no previous file | gm/aarectmodes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/aaclip.cpp
diff --git a/gm/aaclip.cpp b/gm/aaclip.cpp
index 8a0084c0471e792687e092866ba5562322e30ef0..10733b3283c97c0e9ed5bb35273b7e34e047e418 100644
--- a/gm/aaclip.cpp
+++ b/gm/aaclip.cpp
@@ -225,7 +225,7 @@ protected:
SkPaint paint;
paint.setAntiAlias(true);
- paint.setColor(0xFFCCCCCC);
+ paint.setColor(sk_tool_utils::color_to_565(0xFFCCCCCC));
canvas->drawPath(path, paint);
paint.setColor(SK_ColorRED);
@@ -238,7 +238,7 @@ protected:
SkRect r = SkRect::MakeXYWH(0, H/4, W, H/2);
SkPaint paint;
- paint.setColor(0xFF8888FF);
+ paint.setColor(sk_tool_utils::color_to_565(0xFF8888FF));
canvas->drawRect(r, paint);
this->doDraw(canvas, path);
« no previous file with comments | « no previous file | gm/aarectmodes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698