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

Unified Diff: gm/colorwheel.cpp

Issue 1237233004: make colorwheelnative displacement dropshadowimagefilter getposttextpath gm portable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | gm/displacement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/colorwheel.cpp
diff --git a/gm/colorwheel.cpp b/gm/colorwheel.cpp
index 6b9c149684d72de0f12f63958e73f85003f9975a..f4542b33262738fb8610a2ee06f3a8017c106cf6 100644
--- a/gm/colorwheel.cpp
+++ b/gm/colorwheel.cpp
@@ -39,10 +39,10 @@ DEF_SIMPLE_GM(colorwheel, canvas, 256, 256) {
DEF_SIMPLE_GM(colorwheelnative, canvas, 128, 28) {
SkPaint paint;
- sk_tool_utils::set_portable_typeface(&paint, NULL, SkTypeface::kBold);
+ sk_tool_utils::set_portable_typeface_always(&paint, NULL, SkTypeface::kBold);
paint.setTextSize(18.0f);
- canvas->clear(SK_ColorLTGRAY);
+ canvas->clear(sk_tool_utils::color_to_565(SK_ColorLTGRAY));
paint.setColor(SK_ColorRED);
canvas->drawText("R", 1, 8.0f, 20.0f, paint);
paint.setColor(SK_ColorGREEN);
« no previous file with comments | « no previous file | gm/displacement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698