Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tools/viewer/Viewer.cpp

Issue 2075873003: Quickly fix the Compile Problem of Unused kkImageColorXformMetaData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/Viewer.cpp
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp
index be80f5748bce9bf83c6fe4fa2653da73a1245f26..010a9140d719cfa514b73988793500f3a9935a20 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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698