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

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: 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/VulkanWindowContext.cpp ('k') | tools/viewer/sk_app/Window.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..56444a67b76639577e9b0e24a7b506c6bce1a54a 100644
--- a/tools/viewer/sk_app/Window.h
+++ b/tools/viewer/sk_app/Window.h
@@ -8,6 +8,7 @@
#ifndef Window_DEFINED
#define Window_DEFINED
+#include "DisplayParams.h"
#include "SkTypes.h"
#include "SkRect.h"
@@ -36,7 +37,7 @@ public:
kVulkan_BackendType
};
- virtual bool attach(BackEndType attachType, int msaaSampleCount) = 0;
+ virtual bool attach(BackEndType attachType, const DisplayParams& params) = 0;
void detach();
// input handling
@@ -129,6 +130,9 @@ public:
uint32_t width() { return fWidth; }
uint32_t height() { return fHeight; }
+ const DisplayParams& getDisplayParams();
+ void setDisplayParams(const DisplayParams& params);
+
protected:
Window();
« no previous file with comments | « tools/viewer/sk_app/VulkanWindowContext.cpp ('k') | tools/viewer/sk_app/Window.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698