diff options
author | Mike Klein <mtklein@chromium.org> | 2017-09-15 11:45:32 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-16 01:07:34 +0000 |
commit | 7e4e99386fe6e7bf131ba8461dcb1990bf15e346 (patch) | |
tree | 8a0d7620381ab6aa5db16ca1ae1d05c56bb23738 /tests | |
parent | 6e80aea309d90ae6618fb5df4eb0fb81d63d8278 (diff) |
Implement some easy _lowp stages.
- load_565 allows 565-src sprite blits
- scale_565 / lerp_565 allow subpixel text
- luminance_to_alpha is a color filter, and lets us write grey 8
And update CachedDecodingPixelRefTest with a yet more robust color.
Change-Id: I8af499c43f0f28093744d9c2993af553e36c9526
Reviewed-on: https://skia-review.googlesource.com/47021
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CachedDecodingPixelRefTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/CachedDecodingPixelRefTest.cpp b/tests/CachedDecodingPixelRefTest.cpp index 0eecdbb55a..a44781bc2e 100644 --- a/tests/CachedDecodingPixelRefTest.cpp +++ b/tests/CachedDecodingPixelRefTest.cpp @@ -18,6 +18,7 @@ #include "SkUtils.h" #include "Test.h" +#include "sk_tool_utils.h" class TestImageGenerator : public SkImageGenerator { public: @@ -29,7 +30,7 @@ public: static int Width() { return 10; } static int Height() { return 10; } // value choosen so that there is no loss when converting to to RGB565 and back - static SkColor Color() { return 0xff10355a; } + static SkColor Color() { return sk_tool_utils::color_to_565(0xffaabbcc); } static SkPMColor PMColor() { return SkPreMultiplyColor(Color()); } TestImageGenerator(TestType type, skiatest::Reporter* reporter, |