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

Unified Diff: tools/viewer/sk_app/unix/Window_unix.cpp

Issue 2165813002: Add sw support to viewer on Linux. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: minor Created 4 years, 5 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
Index: tools/viewer/sk_app/unix/Window_unix.cpp
diff --git a/tools/viewer/sk_app/unix/Window_unix.cpp b/tools/viewer/sk_app/unix/Window_unix.cpp
index c4729263eca9a144cc1419e815d45ebb5c0b6f3b..55c27dcb8e2088a93081675bc6254e34ada7b300 100644
--- a/tools/viewer/sk_app/unix/Window_unix.cpp
+++ b/tools/viewer/sk_app/unix/Window_unix.cpp
@@ -14,6 +14,7 @@
#include "../VulkanWindowContext.h"
#endif
#include "Window_unix.h"
+#include "RasterWindowContext_unix.h"
extern "C" {
#include "keysym2ucs.h"
@@ -283,8 +284,11 @@ bool Window_unix::attach(BackendType attachType, const DisplayParams& params) {
fWindowContext = VulkanWindowContext::Create((void*)&platformData, params);
break;
#endif
+ case kRaster_BackendType:
+ fWindowContext = RasterWindowContext_unix::Create(platformData.fDisplay,
jvanverth1 2016/07/19 21:18:11 Is there a reason you're using RasterWindowContext
+ platformData.fWindow, params);
+ break;
case kNativeGL_BackendType:
- default:
fWindowContext = GLWindowContext::Create((void*)&platformData, params);
break;
}

Powered by Google App Engine
This is Rietveld 408576698