From af236b5aa9e7d71d59bee6533d16deb76e9d098b Mon Sep 17 00:00:00 2001 From: jvanverth Date: Fri, 20 May 2016 06:01:06 -0700 Subject: Add OpenGL context to Viewer. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1978573003 Committed: https://skia.googlesource.com/skia/+/56a11e4d6f3d436a3c2497c9c9e71a117d78a93f Review-Url: https://codereview.chromium.org/1978573003 --- tools/viewer/sk_app/Window.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tools/viewer/sk_app/Window.h') diff --git a/tools/viewer/sk_app/Window.h b/tools/viewer/sk_app/Window.h index 72db5cb591..63d5e19e55 100644 --- a/tools/viewer/sk_app/Window.h +++ b/tools/viewer/sk_app/Window.h @@ -33,12 +33,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 -- cgit v1.2.3