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
This commit is contained in:
liyuqian 2016-06-16 18:09:11 -07:00 committed by Commit bot
parent 2853f00728
commit ed330c8755

View File

@ -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);