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

Unified Diff: tools/vulkan/Window.h

Issue 1873733003: More cleanup in the Vulkan viewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 8 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 | « gm/scaledstrokes.cpp ('k') | tools/vulkan/Window.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/vulkan/Window.h
diff --git a/tools/vulkan/Window.h b/tools/vulkan/Window.h
index f7b4f132ad8a1952ab3218cec0dbf518087f3d11..c8971eebbe11d29eae78e7a5721ebe1972c06a95 100644
--- a/tools/vulkan/Window.h
+++ b/tools/vulkan/Window.h
@@ -21,6 +21,7 @@ public:
virtual void setTitle(const char*) = 0;
virtual void show() = 0;
+ virtual void inval() = 0;
struct AttachmentInfo {
int fSampleCount;
@@ -122,9 +123,15 @@ public:
void onPaint();
void onResize(uint32_t width, uint32_t height);
+ uint32_t width() { return fWidth; }
+ uint32_t height() { return fHeight; }
+
protected:
Window();
+ uint32_t fWidth;
+ uint32_t fHeight;
+
OnCharFunc fCharFunc;
void* fCharUserData;
OnKeyFunc fKeyFunc;
« no previous file with comments | « gm/scaledstrokes.cpp ('k') | tools/vulkan/Window.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698