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

Unified Diff: gm/rrect.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/repeated_bitmap.cpp ('k') | gm/shallowgradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rrect.cpp
diff --git a/gm/rrect.cpp b/gm/rrect.cpp
index 4c556542c6af8bc15f37c61b1ac0e518c332b136..5106634728545b2aa8c6ed00b2a2e21de349ac4f 100644
--- a/gm/rrect.cpp
+++ b/gm/rrect.cpp
@@ -104,7 +104,7 @@ static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) {
if (rrect.isRect()) {
paint.setColor(SK_ColorRED);
} else if (rrect.isOval()) {
- paint.setColor(0xFF008800);
+ paint.setColor(sk_tool_utils::color_to_565(0xFF008800));
} else if (rrect.isSimple()) {
paint.setColor(SK_ColorBLUE);
} else {
« no previous file with comments | « gm/repeated_bitmap.cpp ('k') | gm/shallowgradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698