Fix Vulkan build after API change
authormsarett <msarett@google.com>
Thu, 16 Jun 2016 18:42:48 +0000 (11:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Jun 2016 18:42:48 +0000 (11:42 -0700)
TBR=brianosman@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2075713002

Review-Url: https://codereview.chromium.org/2075713002

tools/viewer/ImageSlide.cpp

index de5ce4ca1e9677d7830cb4453aecfbe0170ca51e..0eb3b0a6ce0d1c4be1478940c9115cfdc0adf28f 100644 (file)
@@ -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_RGBA_8888(row, row, fXformedBitmap.width());
+        xform->xform_RGB1_8888(row, row, fXformedBitmap.width());
         row = SkTAddOffset<uint32_t>(row, fXformedBitmap.rowBytes());
     }
     fXformedBitmap.notifyPixelsChanged(); // This is needed for the deepCopy