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

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: 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
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..e557ffce61f9624a6401c8c0f10f6ef7d260ba10 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);
}
+bool Window::getSRGB() {
+ return fWindowContext->getSRGB();
+}
+
+void Window::setSRGB(bool srgb) {
+ fWindowContext->setSRGB(srgb);
+}
+
} // namespace sk_app

Powered by Google App Engine
This is Rietveld 408576698