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

Unified Diff: tools/vulkan/Window.h

Issue 1903253003: VulkanViewer on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp 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 | « tools/build_shaderc.py ('k') | tools/vulkan/android/VulkanTestContext_android.h » ('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 c8971eebbe11d29eae78e7a5721ebe1972c06a95..387f052d310f4d763cf9c60616753b9b1e90bf0c 100644
--- a/tools/vulkan/Window.h
+++ b/tools/vulkan/Window.h
@@ -9,6 +9,7 @@
#define Window_DEFINED
#include "SkTypes.h"
+#include "SkRect.h"
class SkCanvas;
class VulkanTestContext;
@@ -23,6 +24,10 @@ public:
virtual void show() = 0;
virtual void inval() = 0;
+ virtual bool scaleContentToFit() const { return false; }
+ virtual bool supportsContentRect() const { return false; }
+ virtual SkRect getContentRect() { return SkRect::MakeEmpty(); }
+
struct AttachmentInfo {
int fSampleCount;
int fStencilBits;
« no previous file with comments | « tools/build_shaderc.py ('k') | tools/vulkan/android/VulkanTestContext_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698