aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer/Viewer.cpp
diff options
context:
space:
mode:
authorGravatar liyuqian <liyuqian@google.com>2016-06-16 18:09:11 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-16 18:09:12 -0700
commited330c8755044822ec536ce8eb0a98a8627302bd (patch)
tree112d7fb0fe9a76bd294da3c78718d3171c3fc887 /tools/viewer/Viewer.cpp
parent2853f007289997c27e736243913bfb43cf9b16bb (diff)
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
Diffstat (limited to 'tools/viewer/Viewer.cpp')
-rw-r--r--tools/viewer/Viewer.cpp1
1 files changed, 1 insertions, 0 deletions
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<SkSurface> offscreenSurface = fWindow->getOffscreenSurface(true);
+ offscreenSurface->getCanvas()->getMetaData().setBool(kImageColorXformMetaData, true);
fSlides[fCurrentSlide]->draw(offscreenSurface->getCanvas());
sk_sp<SkImage> snapshot = offscreenSurface->makeImageSnapshot();
canvas->drawImage(snapshot, 0, 0);