Plumb dst color space in many places, rather than "mode"
[platform/upstream/libSkiaSharp.git] / bench / SkBlend_optsBench.cpp
index b5827ef..d7ba2be 100644 (file)
@@ -146,7 +146,8 @@ protected:
         if (!fPixmap.addr()) {
             sk_sp<SkImage> image = GetResourceAsImage(fFileName.c_str());
             SkBitmap bm;
-            if (!as_IB(image)->getROPixels(&bm, SkDestinationSurfaceColorMode::kLegacy)) {
+            SkColorSpace* legacyColorSpace = nullptr;
+            if (!as_IB(image)->getROPixels(&bm, legacyColorSpace)) {
                 SkFAIL("Could not read resource");
             }
             bm.peekPixels(&fPixmap);