aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-07-15 13:54:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-15 13:54:38 -0700
commit9ce3a543c92a73e6daca420defc042886b3f2019 (patch)
treea8e10d6d44d42202d019a724faa934998f6f2e9b /tools/viewer
parent7ac5da853457b032781cf865ba018de78508edb7 (diff)
Add capability for SkColorXform to output half floats
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2147763002 CQ_INCLUDE_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot;master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Review-Url: https://codereview.chromium.org/2147763002
Diffstat (limited to 'tools/viewer')
-rw-r--r--tools/viewer/ImageSlide.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/viewer/ImageSlide.cpp b/tools/viewer/ImageSlide.cpp
index 0eb3b0a6ce..3ba6b58460 100644
--- a/tools/viewer/ImageSlide.cpp
+++ b/tools/viewer/ImageSlide.cpp
@@ -47,7 +47,7 @@ void ImageSlide::load(SkScalar, SkScalar) {
fOriginalBitmap.deepCopyTo(&fXformedBitmap);
uint32_t* row = (uint32_t*) fXformedBitmap.getPixels();
for (int y = 0; y < fXformedBitmap.height(); y++) {
- xform->xform_RGB1_8888(row, row, fXformedBitmap.width());
+ xform->applyTo8888(row, row, fXformedBitmap.width());
row = SkTAddOffset<uint32_t>(row, fXformedBitmap.rowBytes());
}
fXformedBitmap.notifyPixelsChanged(); // This is needed for the deepCopy