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

Unified Diff: gm/roundrects.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/poly2poly.cpp ('k') | gm/samplerstress.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/roundrects.cpp
diff --git a/gm/roundrects.cpp b/gm/roundrects.cpp
index 5e2813b02c23ee1d5aa7e9e41be626b8abd524f0..b27d0f4309713450914591344d802c08f83d5c91 100644
--- a/gm/roundrects.cpp
+++ b/gm/roundrects.cpp
@@ -133,7 +133,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 {
@@ -153,7 +153,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/poly2poly.cpp ('k') | gm/samplerstress.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698