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

Unified Diff: tools/viewer/sk_app/mac/Window_mac.cpp

Issue 2228883003: Add RasterWindowContext_mac (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comment; enable backend switching Created 4 years, 4 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/mac/WindowContextFactory_mac.h ('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/mac/Window_mac.cpp
diff --git a/tools/viewer/sk_app/mac/Window_mac.cpp b/tools/viewer/sk_app/mac/Window_mac.cpp
index 4aad93c5e382bd2d4b75405ed6dc01e5035728b0..8e707a49c30e8731c497babadb3465a17ca63f09 100644
--- a/tools/viewer/sk_app/mac/Window_mac.cpp
+++ b/tools/viewer/sk_app/mac/Window_mac.cpp
@@ -226,6 +226,10 @@ bool Window_mac::attach(BackendType attachType, const DisplayParams& params) {
window_context_factory::MacWindowInfo info;
info.fWindow = fWindow;
switch (attachType) {
+ case kRaster_BackendType:
+ fWindowContext = NewRasterForMac(info, params);
+ break;
+
case kNativeGL_BackendType:
default:
fWindowContext = NewGLForMac(info, params);
« no previous file with comments | « tools/viewer/sk_app/mac/WindowContextFactory_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698