diff options
Diffstat (limited to 'tools/sk_app/ios/WindowContextFactory_ios.h')
-rw-r--r-- | tools/sk_app/ios/WindowContextFactory_ios.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/sk_app/ios/WindowContextFactory_ios.h b/tools/sk_app/ios/WindowContextFactory_ios.h new file mode 100644 index 0000000000..09999c4c83 --- /dev/null +++ b/tools/sk_app/ios/WindowContextFactory_ios.h @@ -0,0 +1,38 @@ + +/* + * Copyright 2017 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef WindowContextFactory_ios_DEFINED +#define WindowContextFactory_ios_DEFINED + +#include "SDL.h" + +namespace sk_app { + +class WindowContext; +struct DisplayParams; + +namespace window_context_factory { + +struct IOSWindowInfo { + SDL_Window* fWindow; +}; + +inline WindowContext* NewVulkanForIOS(const IOSWindowInfo&, const DisplayParams&) { + // No Vulkan support on iOS. + return nullptr; +} + +WindowContext* NewGLForIOS(const IOSWindowInfo&, const DisplayParams&); + +WindowContext* NewRasterForIOS(const IOSWindowInfo&, const DisplayParams&); + +} // namespace window_context_factory + +} // namespace sk_app + +#endif |