aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/multipicturedraw.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/multipicturedraw.cpp
parent7a0d697ed69610efac1b964896edfc9bd869243c (diff)
make pixelsnap textblob* etc gm portable
TBR=reed@google.com Review URL: https://codereview.chromium.org/1263553002
Diffstat (limited to 'gm/multipicturedraw.cpp')
-rw-r--r--gm/multipicturedraw.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/multipicturedraw.cpp b/gm/multipicturedraw.cpp
index 0e11b0653f..21c9d187b3 100644
--- a/gm/multipicturedraw.cpp
+++ b/gm/multipicturedraw.cpp
@@ -98,7 +98,7 @@ static const SkPicture* make_single_layer_hex_plane_picture() {
SkPaint greyFill;
greyFill.setStyle(SkPaint::kFill_Style);
- greyFill.setColor(SK_ColorLTGRAY);
+ greyFill.setColor(sk_tool_utils::color_to_565(SK_ColorLTGRAY));
SkPaint stroke;
stroke.setStyle(SkPaint::kStroke_Style);
@@ -154,7 +154,7 @@ static const SkPicture* make_tri_picture() {
SkPaint fill;
fill.setStyle(SkPaint::kFill_Style);
- fill.setColor(SK_ColorLTGRAY);
+ fill.setColor(sk_tool_utils::color_to_565(SK_ColorLTGRAY));
SkPaint stroke;
stroke.setStyle(SkPaint::kStroke_Style);
@@ -488,7 +488,7 @@ namespace skiagm {
void onOnceBeforeDraw() override {
fPictures[0] = make_hex_plane_picture(SK_ColorWHITE);
- fPictures[1] = make_hex_plane_picture(SK_ColorGRAY);
+ fPictures[1] = make_hex_plane_picture(sk_tool_utils::color_to_565(SK_ColorGRAY));
fPictures[2] = make_sierpinski_picture();
fPictures[3] = make_single_layer_hex_plane_picture();
}