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

Side by Side Diff: tools/viewer/sk_app/mac/WindowContextFactory_mac.h

Issue 2210603003: Get Mac viewer working with SDL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix patch 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 unified diff | Download patch
« no previous file with comments | « tools/viewer/sk_app/mac/GLWindowContext_mac.cpp ('k') | tools/viewer/sk_app/mac/Window_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef WindowContextFactory_mac_DEFINED 9 #ifndef WindowContextFactory_mac_DEFINED
10 #define WindowContextFactory_mac_DEFINED 10 #define WindowContextFactory_mac_DEFINED
11 11
12 #include "SDL.h"
13
12 namespace sk_app { 14 namespace sk_app {
13 15
14 class WindowContext; 16 class WindowContext;
15 struct DisplayParams; 17 struct DisplayParams;
16 18
17 namespace window_context_factory { 19 namespace window_context_factory {
18 20
19 struct MacWindowInfo { 21 struct MacWindowInfo {
20 #if 0 // TODO: use Mac-specific objects 22 SDL_Window* fWindow;
21 Display* fDisplay;
22 XWindow fWindow;
23 XVisualInfo* fVisualInfo;
24 #endif
25 }; 23 };
26 24
27 inline WindowContext* NewVulkanForMac(const MacWindowInfo&, const DisplayParams& ) { 25 inline WindowContext* NewVulkanForMac(const MacWindowInfo&, const DisplayParams& ) {
28 // No Vulkan support on Mac. 26 // No Vulkan support on Mac.
29 return nullptr; 27 return nullptr;
30 } 28 }
31 29
32 WindowContext* NewGLForMac(const MacWindowInfo&, const DisplayParams&); 30 WindowContext* NewGLForMac(const MacWindowInfo&, const DisplayParams&);
33 31
34 } // namespace window_context_factory 32 } // namespace window_context_factory
35 33
36 } // namespace sk_app 34 } // namespace sk_app
37 35
38 #endif 36 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/mac/GLWindowContext_mac.cpp ('k') | tools/viewer/sk_app/mac/Window_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698