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/shallowgradient.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/shallowgradient.cpp')
-rw-r--r-- | gm/shallowgradient.cpp | 3 |
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() }; |