From ed330c8755044822ec536ce8eb0a98a8627302bd Mon Sep 17 00:00:00 2001 From: liyuqian Date: Thu, 16 Jun 2016 18:09:11 -0700 Subject: Quickly fix the Compile Problem of Unused kkImageColorXformMetaData TBR=msarett@google.com I don't know why the compiler is complaining that since ImageSlide.cpp is still using it. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2075873003 Review-Url: https://codereview.chromium.org/2075873003 --- tools/viewer/Viewer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/viewer') diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp index be80f5748b..010a9140d7 100644 --- a/tools/viewer/Viewer.cpp +++ b/tools/viewer/Viewer.cpp @@ -375,6 +375,7 @@ void Viewer::drawSlide(SkCanvas* canvas, bool inSplitScreen) { if (inSplitScreen) { sk_sp offscreenSurface = fWindow->getOffscreenSurface(true); + offscreenSurface->getCanvas()->getMetaData().setBool(kImageColorXformMetaData, true); fSlides[fCurrentSlide]->draw(offscreenSurface->getCanvas()); sk_sp snapshot = offscreenSurface->makeImageSnapshot(); canvas->drawImage(snapshot, 0, 0); -- cgit v1.2.3