• 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 class SkWindowContext;
16 struct SkDisplayParams;
17 
18 namespace window_context_factory {
19 
20 std::unique_ptr<SkWindowContext> MakeVulkanForAndroid(ANativeWindow*, const SkDisplayParams&);
21 
22 std::unique_ptr<SkWindowContext> MakeGLForAndroid(ANativeWindow*, const SkDisplayParams&);
23 
24 }  // namespace window_context_factory
25 
26 #endif
27