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

Unified Diff: gm/samplerstress.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/roundrects.cpp ('k') | gm/strokerect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/samplerstress.cpp
diff --git a/gm/samplerstress.cpp b/gm/samplerstress.cpp
index ec072708cbcf2695a05758b5018e18b4adaae994..38b94bf03a81c665d0a67c097284e2d365f4c4a3 100644
--- a/gm/samplerstress.cpp
+++ b/gm/samplerstress.cpp
@@ -101,6 +101,7 @@ protected:
paint.setTextSize(72);
paint.setShader(fShader.get());
paint.setMaskFilter(fMaskFilter.get());
+ sk_tool_utils::set_portable_typeface(&paint);
SkRect temp;
temp.set(SkIntToScalar(115),
@@ -131,7 +132,7 @@ protected:
SkIntToScalar(100), SkIntToScalar(100),
paint2);
- paint2.setColor(SK_ColorGRAY);
+ paint2.setColor(sk_tool_utils::color_to_565(SK_ColorGRAY));
canvas->drawPath(path, paint2);
}
« no previous file with comments | « gm/roundrects.cpp ('k') | gm/strokerect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698