diff options
author | 2015-07-20 10:48:01 -0700 | |
---|---|---|
committer | 2015-07-20 10:48:01 -0700 | |
commit | 85693c15c8948911afb0036a1a01bda64157a0ab (patch) | |
tree | e8cf5b1f334b8579f5b1a8e53bae5ce39c4aeede /gm/textblobtransforms.cpp | |
parent | 942930dcaa51f66d82cdaf46ae62efebd16c8cd0 (diff) |
make stroketext textblob* texteffects tileimagefilter gm portable
TBR=reed@google.com
Review URL: https://codereview.chromium.org/1244833002
Diffstat (limited to 'gm/textblobtransforms.cpp')
-rw-r--r-- | gm/textblobtransforms.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/textblobtransforms.cpp b/gm/textblobtransforms.cpp index d24e6e860e..76342e593f 100644 --- a/gm/textblobtransforms.cpp +++ b/gm/textblobtransforms.cpp @@ -28,7 +28,7 @@ protected: SkPaint paint; paint.setTextSize(162); const char* text = "A"; - sk_tool_utils::set_portable_typeface(&paint); + sk_tool_utils::set_portable_typeface_always(&paint); SkRect bounds; paint.measureText(text, strlen(text), &bounds); @@ -62,7 +62,7 @@ protected: void onDraw(SkCanvas* canvas) override { - canvas->drawColor(SK_ColorGRAY); + canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); SkPaint paint; @@ -72,7 +72,7 @@ protected: // Colors were chosen to map to pairs of canonical colors. The GPU Backend will cache A8 // Texture Blobs based on the canonical color they map to. Canonical colors are used to // create masks. For A8 there are 8 of them. - //SkColor colors[] = {SK_ColorCYAN, SK_ColorLTGRAY, SK_ColorYELLOW, SK_ColorWHITE}; + //SkColor colors[] = {SK_ColorCYAN, sk_tool_utils::color_to_565(SK_ColorLTGRAY), SK_ColorYELLOW, SK_ColorWHITE}; SkScalar xOffset = SkScalarCeilToScalar(bounds.width()); SkScalar yOffset = SkScalarCeilToScalar(bounds.height()); |