diff options
author | caryclark <caryclark@google.com> | 2015-07-29 05:27:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-29 05:27:47 -0700 |
commit | 125960152dfd7f2aba4c2239131bdf75d9ac2705 (patch) | |
tree | 2bf4847f1586d5cb65cc127ba6984a754784d424 /gm/imagefilterscropexpand.cpp | |
parent | a52b7a03c61e38cff4236cc83eff97f00e465803 (diff) |
make tests portable by using 565 compatible colors
TBR=reed@google.com
Review URL: https://codereview.chromium.org/1262703002
Diffstat (limited to 'gm/imagefilterscropexpand.cpp')
-rw-r--r-- | gm/imagefilterscropexpand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/imagefilterscropexpand.cpp b/gm/imagefilterscropexpand.cpp index 4fe746a1a1..8f90fb14bd 100644 --- a/gm/imagefilterscropexpand.cpp +++ b/gm/imagefilterscropexpand.cpp @@ -41,9 +41,9 @@ protected: SkCanvas canvas(*bitmap); canvas.clear(0xFFFF0000); SkPaint darkPaint; - darkPaint.setColor(0xFF404040); + darkPaint.setColor(sk_tool_utils::color_to_565(0xFF404040)); SkPaint lightPaint; - lightPaint.setColor(0xFFA0A0A0); + lightPaint.setColor(sk_tool_utils::color_to_565(0xFFA0A0A0)); for (int y = 8; y < 48; y += 16) { for (int x = 8; x < 48; x += 16) { canvas.save(); |