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

Unified Diff: gm/pathinterior.cpp

Issue 1263553002: make pixelsnap textblob* etc gm portable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add more 565 compatibility 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/ovals.cpp ('k') | gm/pictureshader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/pathinterior.cpp
diff --git a/gm/pathinterior.cpp b/gm/pathinterior.cpp
index 24fea6854eb8bc8033ad4c6a3226072145ae2e9d..88efb3a7a87acd9e798e16d6b3c02522beda25d7 100644
--- a/gm/pathinterior.cpp
+++ b/gm/pathinterior.cpp
@@ -44,7 +44,7 @@ protected:
bool hasInterior = false;
#endif
- paint.setColor(hasInterior ? 0xFF8888FF : SK_ColorGRAY);
+ paint.setColor(sk_tool_utils::color_to_565(hasInterior ? 0xFF8888FF : SK_ColorGRAY));
canvas->drawPath(path, paint);
paint.setStyle(SkPaint::kStroke_Style);
paint.setColor(SK_ColorRED);
« no previous file with comments | « gm/ovals.cpp ('k') | gm/pictureshader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698