Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1880)

Unified Diff: tools/viewer/ImageSlide.cpp

Issue 2147763002: Add capability for SkColorXform to output half floats (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Call swizzle fn Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/ColorSpaceXformTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/ImageSlide.cpp
diff --git a/tools/viewer/ImageSlide.cpp b/tools/viewer/ImageSlide.cpp
index 0eb3b0a6ce0d1c4be1478940c9115cfdc0adf28f..3ba6b584603064fa9aee965dfd13a038170a64ab 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
« no previous file with comments | « tests/ColorSpaceXformTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698