aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imagefilterscropexpand.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-07-29 05:27:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-29 05:27:47 -0700
commit125960152dfd7f2aba4c2239131bdf75d9ac2705 (patch)
tree2bf4847f1586d5cb65cc127ba6984a754784d424 /gm/imagefilterscropexpand.cpp
parenta52b7a03c61e38cff4236cc83eff97f00e465803 (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.cpp4
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();