Flutter Engine
android_context.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_CONTEXT_H_
6 #define FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_CONTEXT_H_
7 
8 #include "flutter/fml/macros.h"
9 
10 namespace flutter {
11 
12 enum class AndroidRenderingAPI {
13  kSoftware,
14  kOpenGLES,
15  kVulkan,
16 };
17 
18 //------------------------------------------------------------------------------
19 /// @brief Holds state that is shared across Android surfaces.
20 ///
22  public:
23  AndroidContext(AndroidRenderingAPI rendering_api);
24 
25  ~AndroidContext();
26 
27  AndroidRenderingAPI RenderingApi() const;
28 
29  bool IsValid() const;
30 
31  private:
32  const AndroidRenderingAPI rendering_api_;
33 
35 };
36 
37 } // namespace flutter
38 
39 #endif // FLUTTER_SHELL_PLATFORM_ANDROID_ANDROID_CONTEXT_H_
Holds state that is shared across Android surfaces.
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition: macros.h:27