diff options
Diffstat (limited to 'tools/viewer/sk_app/Window.h')
-rw-r--r-- | tools/viewer/sk_app/Window.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/viewer/sk_app/Window.h b/tools/viewer/sk_app/Window.h index f233f131a5..5b41f87f07 100644 --- a/tools/viewer/sk_app/Window.h +++ b/tools/viewer/sk_app/Window.h @@ -32,12 +32,17 @@ public: virtual bool supportsContentRect() const { return false; } virtual SkRect getContentRect() { return SkRect::MakeEmpty(); } - enum BackEndType { + enum BackendType { kNativeGL_BackendType, - kVulkan_BackendType + kVulkan_BackendType, + + kLast_BackendType = kVulkan_BackendType + }; + enum { + kBackendTypeCount = kLast_BackendType + 1 }; - virtual bool attach(BackEndType attachType, const DisplayParams& params) = 0; + virtual bool attach(BackendType attachType, const DisplayParams& params) = 0; void detach(); // input handling |