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

Unified Diff: gm/shallowgradient.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/rrect.cpp ('k') | gm/simpleaaclip.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/shallowgradient.cpp
diff --git a/gm/shallowgradient.cpp b/gm/shallowgradient.cpp
index 415ed41489b86f25758f5c08b59be0818abf2bbe..276ec14f49d2b397f602935ae3823b0596bee0c0 100644
--- a/gm/shallowgradient.cpp
+++ b/gm/shallowgradient.cpp
@@ -52,7 +52,8 @@ protected:
}
void onDraw(SkCanvas* canvas) override {
- const SkColor colors[] = { 0xFF555555, 0xFF444444 };
+ const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555),
+ sk_tool_utils::color_to_565(0xFF444444) };
const int colorCount = SK_ARRAY_COUNT(colors);
SkRect r = { 0, 0, this->width(), this->height() };
« no previous file with comments | « gm/rrect.cpp ('k') | gm/simpleaaclip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698