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

Unified Diff: gm/ovals.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/multipicturedraw.cpp ('k') | gm/pathinterior.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/ovals.cpp
diff --git a/gm/ovals.cpp b/gm/ovals.cpp
index b0c207b4ceeadc1d0cbc7408247d092ed1faa193..32c9e71640d6fa3bc42c7ea1c3409b51d7882f3a 100755
--- a/gm/ovals.cpp
+++ b/gm/ovals.cpp
@@ -132,7 +132,7 @@ protected:
hsv[1] = rand->nextRangeF(0.75f, 1.0f);
hsv[2] = rand->nextRangeF(0.75f, 1.0f);
- return SkHSVToColor(hsv);
+ return sk_tool_utils::color_to_565(SkHSVToColor(hsv));
}
void onDraw(SkCanvas* canvas) override {
@@ -150,7 +150,7 @@ protected:
rectPaint.setAntiAlias(true);
rectPaint.setStyle(SkPaint::kStroke_Style);
rectPaint.setStrokeWidth(SkIntToScalar(0));
- rectPaint.setColor(SK_ColorLTGRAY);
+ rectPaint.setColor(sk_tool_utils::color_to_565(SK_ColorLTGRAY));
int testCount = 0;
for (int i = 0; i < fPaints.count(); ++i) {
« no previous file with comments | « gm/multipicturedraw.cpp ('k') | gm/pathinterior.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698