• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2023 Google LLC
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef WindowContextFactory_android_DEFINED
9 #define WindowContextFactory_android_DEFINED
10 
11 #include <android/native_window_jni.h>
12 
13 #include <memory>
14 
15 namespace skwindow {
16 
17 class WindowContext;
18 struct DisplayParams;
19 
20 std::unique_ptr<WindowContext> MakeVulkanForAndroid(ANativeWindow*, const DisplayParams&);
21 
22 std::unique_ptr<WindowContext> MakeGraphiteVulkanForAndroid(ANativeWindow*, const DisplayParams&);
23 
24 std::unique_ptr<WindowContext> MakeGLForAndroid(ANativeWindow*, const DisplayParams&);
25 
26 std::unique_ptr<WindowContext> MakeRasterForAndroid(ANativeWindow*, const DisplayParams&);
27 
28 }  // namespace skwindow
29 
30 #endif
31