5 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_EGL_MANAGER_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_EGL_MANAGER_H_
10 #include <EGL/eglext.h>
11 #include <EGL/eglplatform.h>
12 #include <GLES2/gl2.h>
13 #include <GLES2/gl2ext.h>
18 #include <wrl/client.h>
21 #include "flutter/fml/macros.h"
33 static std::unique_ptr<Manager>
Create();
59 EGLClientBuffer handle,
60 const EGLint* attributes)
const;
81 static int instance_count_;
84 bool InitializeDisplay();
87 bool InitializeConfig();
90 bool InitializeContexts();
93 bool InitializeDevice();
98 bool is_valid_ =
false;
101 EGLDisplay display_ = EGL_NO_DISPLAY;
104 EGLConfig config_ =
nullptr;
107 std::unique_ptr<Context> render_context_;
110 std::unique_ptr<Context> resource_context_;
113 Microsoft::WRL::ComPtr<ID3D11Device> resolved_device_ =
nullptr;
115 FML_DISALLOW_COPY_AND_ASSIGN(
Manager);
121 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_EGL_MANAGER_H_