From f597c42c50718d5c39769077040de1768c89bbd3 Mon Sep 17 00:00:00 2001 From: caryclark Date: Tue, 28 Jul 2015 10:37:53 -0700 Subject: make pixelsnap textblob* etc gm portable TBR=reed@google.com Review URL: https://codereview.chromium.org/1263553002 --- gm/imageblur2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gm/imageblur2.cpp') diff --git a/gm/imageblur2.cpp b/gm/imageblur2.cpp index 480f09390f..58e40961e4 100644 --- a/gm/imageblur2.cpp +++ b/gm/imageblur2.cpp @@ -64,7 +64,8 @@ protected: SkRandom rand; SkPaint textPaint; textPaint.setAntiAlias(false); - textPaint.setColor(rand.nextBits(24) | 0xFF000000); + textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000)); + sk_tool_utils::set_portable_typeface(&textPaint); textPaint.setTextSize(textSize); for (int i = 0; i < testStringCount; i++) { -- cgit v1.2.3