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

Unified Diff: tools/viewer/sk_app/win/Window_win.cpp

Issue 2067023002: Enable viewer in non-Vulkan builds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Only include XCB if using Vulkan Created 4 years, 6 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/unix/Window_unix.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/sk_app/win/Window_win.cpp
diff --git a/tools/viewer/sk_app/win/Window_win.cpp b/tools/viewer/sk_app/win/Window_win.cpp
index f9762a8787be98038e0d38a4a2d6eadd9a628bbf..03537caa45cac182304cecc01ffd97bce29e9681 100644
--- a/tools/viewer/sk_app/win/Window_win.cpp
+++ b/tools/viewer/sk_app/win/Window_win.cpp
@@ -13,7 +13,9 @@
#include "SkUtils.h"
#include "../GLWindowContext.h"
+#ifdef SK_VULKAN
#include "../VulkanWindowContext.h"
+#endif
namespace sk_app {
@@ -275,10 +277,11 @@ bool Window_win::attach(BackendType attachType, const DisplayParams& params) {
default:
fWindowContext = GLWindowContext::Create((void*)&platformData, params);
break;
-
+#ifdef SK_VULKAN
case kVulkan_BackendType:
fWindowContext = VulkanWindowContext::Create((void*)&platformData, params);
break;
+#endif
}
return (SkToBool(fWindowContext));
« no previous file with comments | « tools/viewer/sk_app/unix/Window_unix.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698