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:
parent
2853f00728
commit
ed330c8755
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user