aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/shallowgradient.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/shallowgradient.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/shallowgradient.cpp')
-rw-r--r--gm/shallowgradient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/shallowgradient.cpp b/gm/shallowgradient.cpp
index 415ed41489..276ec14f49 100644
--- a/gm/shallowgradient.cpp
+++ b/gm/shallowgradient.cpp
@@ -52,7 +52,8 @@ protected:
}
void onDraw(SkCanvas* canvas) override {
- const SkColor colors[] = { 0xFF555555, 0xFF444444 };
+ const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555),
+ sk_tool_utils::color_to_565(0xFF444444) };
const int colorCount = SK_ARRAY_COUNT(colors);
SkRect r = { 0, 0, this->width(), this->height() };