Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
WindowContextFactory_android.h
Go to the documentation of this file.
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
15namespace skwindow {
16
17class WindowContext;
18struct DisplayParams;
19
20std::unique_ptr<WindowContext> MakeVulkanForAndroid(ANativeWindow*, const DisplayParams&);
21
22std::unique_ptr<WindowContext> MakeGraphiteVulkanForAndroid(ANativeWindow*, const DisplayParams&);
23
24std::unique_ptr<WindowContext> MakeGLForAndroid(ANativeWindow*, const DisplayParams&);
25
26std::unique_ptr<WindowContext> MakeRasterForAndroid(ANativeWindow*, const DisplayParams&);
27
28} // namespace skwindow
29
30#endif
std::unique_ptr< WindowContext > MakeGraphiteVulkanForAndroid(ANativeWindow *window, const DisplayParams &params)
std::unique_ptr< WindowContext > MakeVulkanForAndroid(ANativeWindow *window, const DisplayParams &params)
struct ANativeWindow ANativeWindow