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/multipicturedraw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gm/multipicturedraw.cpp') 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(); } -- cgit v1.2.3