aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imageblur2.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-07-28 10:37:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-28 10:37:53 -0700
commitf597c42c50718d5c39769077040de1768c89bbd3 (patch)
tree8cc51fbb20f2e1c8ed1a20ff8ee6360d62aa4331 /gm/imageblur2.cpp
parent7a0d697ed69610efac1b964896edfc9bd869243c (diff)
make pixelsnap textblob* etc gm portable
TBR=reed@google.com Review URL: https://codereview.chromium.org/1263553002
Diffstat (limited to 'gm/imageblur2.cpp')
-rw-r--r--gm/imageblur2.cpp3
1 files changed, 2 insertions, 1 deletions
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++) {