#include <context.h>
Definition at line 20 of file context.h.
◆ Context()
flutter::egl::Context::Context |
( |
EGLDisplay |
display, |
|
|
EGLContext |
context |
|
) |
| |
Definition at line 12 of file context.cc.
13 : display_(display), context_(context) {}
◆ ~Context()
flutter::egl::Context::~Context |
( |
| ) |
|
Definition at line 15 of file context.cc.
16 if (display_ == EGL_NO_DISPLAY && context_ == EGL_NO_CONTEXT) {
20 if (::eglDestroyContext(display_, context_) != EGL_TRUE) {
References WINDOWS_LOG_EGL_ERROR.
◆ ClearCurrent()
bool flutter::egl::Context::ClearCurrent |
( |
| ) |
const |
|
virtual |
Definition at line 40 of file context.cc.
41 const auto result = ::eglMakeCurrent(display_, EGL_NO_SURFACE, EGL_NO_SURFACE,
43 if (result != EGL_TRUE) {
References WINDOWS_LOG_EGL_ERROR.
◆ GetHandle()
const EGLContext & flutter::egl::Context::GetHandle |
( |
| ) |
const |
|
virtual |
◆ IsCurrent()
bool flutter::egl::Context::IsCurrent |
( |
| ) |
const |
|
virtual |
Definition at line 25 of file context.cc.
26 return ::eglGetCurrentContext() == context_;
◆ MakeCurrent()
bool flutter::egl::Context::MakeCurrent |
( |
| ) |
const |
|
virtual |
Definition at line 29 of file context.cc.
31 ::eglMakeCurrent(display_, EGL_NO_SURFACE, EGL_NO_SURFACE, context_);
32 if (result != EGL_TRUE) {
References WINDOWS_LOG_EGL_ERROR.
The documentation for this class was generated from the following files: