| OLD | NEW |
| 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 |
| OLD | NEW |