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

Unified Diff: tools/viewer/sk_app/Window.cpp

Issue 1950983007: Add sRGB mode toggle to Viewer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Bundle window surface parameters in struct, use SkColorType/SkColorProfileType Created 4 years, 7 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 | « tools/viewer/sk_app/Window.h ('k') | tools/viewer/sk_app/WindowContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/sk_app/Window.cpp
diff --git a/tools/viewer/sk_app/Window.cpp b/tools/viewer/sk_app/Window.cpp
index a7fd6b0cf67d95a07042747142e2fd5580a0d5bf..47053be5afc5a503f398316238bdda317fd94ead 100644
--- a/tools/viewer/sk_app/Window.cpp
+++ b/tools/viewer/sk_app/Window.cpp
@@ -75,4 +75,12 @@ void Window::onResize(uint32_t w, uint32_t h) {
fWindowContext->resize(w, h);
}
+const DisplayParams& Window::getDisplayParams() {
+ return fWindowContext->getDisplayParams();
+}
+
+void Window::setDisplayParams(const DisplayParams& params) {
+ fWindowContext->setDisplayParams(params);
+}
+
} // namespace sk_app
« no previous file with comments | « tools/viewer/sk_app/Window.h ('k') | tools/viewer/sk_app/WindowContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698