• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "SDL.h"
13 
14 namespace sk_app {
15 
16 class WindowContext;
17 struct DisplayParams;
18 
19 namespace window_context_factory {
20 
21 struct MacWindowInfo {
22     SDL_Window*  fWindow;
23 };
24 
NewVulkanForMac(const MacWindowInfo &,const DisplayParams &)25 inline WindowContext* NewVulkanForMac(const MacWindowInfo&, const DisplayParams&) {
26     // No Vulkan support on Mac.
27     return nullptr;
28 }
29 
30 WindowContext* NewGLForMac(const MacWindowInfo&, const DisplayParams&);
31 
32 WindowContext* NewRasterForMac(const MacWindowInfo&, const DisplayParams&);
33 
34 }  // namespace window_context_factory
35 
36 }  // namespace sk_app
37 
38 #endif
39