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

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

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.h
diff --git a/tools/viewer/sk_app/Window.h b/tools/viewer/sk_app/Window.h
index 3dd558e75ae2362cad4bafe648515311e06d4c1b..a898858066fa4b4b3bfa58a6fcd9754be3deb888 100644
--- a/tools/viewer/sk_app/Window.h
+++ b/tools/viewer/sk_app/Window.h
@@ -36,7 +36,7 @@ public:
kVulkan_BackendType
};
- virtual bool attach(BackEndType attachType, int msaaSampleCount) = 0;
+ virtual bool attach(BackEndType attachType, int msaaSampleCount, bool srgb) = 0;
void detach();
// input handling
@@ -129,6 +129,9 @@ public:
uint32_t width() { return fWidth; }
uint32_t height() { return fHeight; }
+ bool getSRGB();
+ void setSRGB(bool srgb);
+
protected:
Window();

Powered by Google App Engine
This is Rietveld 408576698