OLD | NEW |
(Empty) | |
| 1 |
| 2 /* |
| 3 * Copyright 2016 Google Inc. |
| 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. |
| 7 */ |
| 8 |
| 9 #ifndef WindowContextFactory_mac_DEFINED |
| 10 #define WindowContextFactory_mac_DEFINED |
| 11 |
| 12 namespace sk_app { |
| 13 |
| 14 class WindowContext; |
| 15 struct DisplayParams; |
| 16 |
| 17 namespace window_context_factory { |
| 18 |
| 19 struct MacWindowInfo { |
| 20 #if 0 // TODO: use Mac-specific objects |
| 21 Display* fDisplay; |
| 22 XWindow fWindow; |
| 23 XVisualInfo* fVisualInfo; |
| 24 #endif |
| 25 }; |
| 26 |
| 27 inline WindowContext* NewVulkanForMac(const MacWindowInfo&, const DisplayParams&
) { |
| 28 // No Vulkan support on Mac. |
| 29 return nullptr; |
| 30 } |
| 31 |
| 32 WindowContext* NewGLForMac(const MacWindowInfo&, const DisplayParams&); |
| 33 |
| 34 } // namespace window_context_factory |
| 35 |
| 36 } // namespace sk_app |
| 37 |
| 38 #endif |
OLD | NEW |