aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/arithmode.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-07-17 09:39:16 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-17 09:39:16 -0700
commitdfcb7abc4141826d286d4e51c03d0c94e89f9751 (patch)
tree53c532f3ee6ed972e7fe7a4afef9e32913fe303e /gm/arithmode.cpp
parenta2a6fe86998035f9930f31a84bce508ada044910 (diff)
make arithmode bigtext colortype* degeneratesegments gm portable
TBR=reed@google.com Review URL: https://codereview.chromium.org/1235343004
Diffstat (limited to 'gm/arithmode.cpp')
-rw-r--r--gm/arithmode.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/arithmode.cpp b/gm/arithmode.cpp
index 14f6aa0f57..c58b14e490 100644
--- a/gm/arithmode.cpp
+++ b/gm/arithmode.cpp
@@ -44,7 +44,8 @@ static SkBitmap make_dst() {
SkPaint paint;
SkPoint pts[] = { {0, SkIntToScalar(HH)}, {SkIntToScalar(WW), 0} };
SkColor colors[] = {
- SK_ColorBLUE, SK_ColorYELLOW, SK_ColorBLACK, SK_ColorGREEN, SK_ColorGRAY
+ SK_ColorBLUE, SK_ColorYELLOW, SK_ColorBLACK, SK_ColorGREEN,
+ sk_tool_utils::color_to_565(SK_ColorGRAY)
};
SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, SK_ARRAY_COUNT(colors),
SkShader::kClamp_TileMode);
@@ -57,7 +58,7 @@ static void show_k_text(SkCanvas* canvas, SkScalar x, SkScalar y, const SkScalar
SkPaint paint;
paint.setTextSize(SkIntToScalar(24));
paint.setAntiAlias(true);
- sk_tool_utils::set_portable_typeface(&paint);
+ sk_tool_utils::set_portable_typeface_always(&paint);
for (int i = 0; i < 4; ++i) {
SkString str;
str.appendScalar(k[i]);