#include <manager.h>
Definition at line 31 of file manager.h.
◆ ~Manager()
flutter::egl::Manager::~Manager |
( |
| ) |
|
|
virtual |
◆ Manager()
flutter::egl::Manager::Manager |
( |
bool |
enable_impeller | ) |
|
|
explicitprotected |
Definition at line 26 of file manager.cc.
29 if (!InitializeDisplay()) {
33 if (!InitializeConfig(enable_impeller)) {
37 if (!InitializeContexts()) {
Referenced by Create().
◆ Create()
std::unique_ptr< Manager > flutter::egl::Manager::Create |
( |
bool |
enable_impeller | ) |
|
|
static |
Definition at line 17 of file manager.cc.
18 std::unique_ptr<Manager> manager;
19 manager.reset(
new Manager(enable_impeller));
20 if (!manager->IsValid()) {
23 return std::move(manager);
References Manager().
◆ CreateSurfaceFromHandle()
EGLSurface flutter::egl::Manager::CreateSurfaceFromHandle |
( |
EGLenum |
handle_type, |
|
|
EGLClientBuffer |
handle, |
|
|
const EGLint * |
attributes |
|
) |
| const |
Definition at line 300 of file manager.cc.
303 return ::eglCreatePbufferFromClientBuffer(display_, handle_type, handle,
304 config_, attributes);
◆ CreateWindowSurface()
std::unique_ptr< WindowSurface > flutter::egl::Manager::CreateWindowSurface |
( |
HWND |
hwnd, |
|
|
size_t |
width, |
|
|
size_t |
height |
|
) |
| |
|
virtual |
Definition at line 266 of file manager.cc.
269 if (!hwnd || !is_valid_) {
276 const EGLint surface_attributes[] = {EGL_FIXED_SIZE_ANGLE,
279 static_cast<EGLint
>(width),
281 static_cast<EGLint
>(height),
284 auto const surface = ::eglCreateWindowSurface(
285 display_, config_,
static_cast<EGLNativeWindowType
>(hwnd),
287 if (surface == EGL_NO_SURFACE) {
292 return std::make_unique<WindowSurface>(display_, render_context_->GetHandle(),
293 surface, width, height);
References flutter::egl::LogEGLError().
Referenced by flutter::FlutterWindowsView::CreateRenderSurface().
◆ egl_display()
EGLDisplay flutter::egl::Manager::egl_display |
( |
| ) |
const |
|
inline |
◆ GetDevice()
bool flutter::egl::Manager::GetDevice |
( |
ID3D11Device ** |
device | ) |
|
Definition at line 307 of file manager.cc.
308 if (!resolved_device_) {
309 if (!InitializeDevice()) {
314 resolved_device_.CopyTo(device);
315 return (resolved_device_ !=
nullptr);
◆ HasContextCurrent()
bool flutter::egl::Manager::HasContextCurrent |
( |
| ) |
|
Definition at line 296 of file manager.cc.
297 return ::eglGetCurrentContext() != EGL_NO_CONTEXT;
◆ IsValid()
bool flutter::egl::Manager::IsValid |
( |
| ) |
const |
◆ render_context()
Context * flutter::egl::Manager::render_context |
( |
| ) |
const |
|
virtual |
Definition at line 318 of file manager.cc.
319 return render_context_.get();
◆ resource_context()
Context * flutter::egl::Manager::resource_context |
( |
| ) |
const |
|
virtual |
Definition at line 322 of file manager.cc.
323 return resource_context_.get();
The documentation for this class was generated from the following files: