#include <surface.h>
Definition at line 18 of file surface.h.
◆ Surface()
Surface::Surface |
( |
EGLDisplay |
display, |
|
|
EGLContext |
context, |
|
|
EGLSurface |
surface |
|
) |
| |
◆ ~Surface()
◆ Destroy()
bool Surface::Destroy |
( |
| ) |
|
|
virtual |
Definition at line 23 of file surface.cc.
23 {
25
26 if (::eglMakeCurrent(
display_, EGL_NO_SURFACE, EGL_NO_SURFACE,
27 EGL_NO_CONTEXT) != EGL_TRUE) {
29 return false;
30 }
31
34 return false;
35 }
36 }
37
40 return true;
41}
◆ FML_DISALLOW_COPY_AND_ASSIGN()
flutter::egl::Surface::FML_DISALLOW_COPY_AND_ASSIGN |
( |
Surface |
| ) |
|
|
protected |
◆ GetHandle()
const EGLSurface & Surface::GetHandle |
( |
| ) |
const |
|
virtual |
◆ IsCurrent()
bool Surface::IsCurrent |
( |
| ) |
const |
|
virtual |
Definition at line 43 of file surface.cc.
43 {
44 return display_ == ::eglGetCurrentDisplay() &&
45 surface_ == ::eglGetCurrentSurface(EGL_DRAW) &&
46 surface_ == ::eglGetCurrentSurface(EGL_READ) &&
47 context_ == ::eglGetCurrentContext();
48}
◆ IsValid()
bool Surface::IsValid |
( |
| ) |
const |
|
virtual |
◆ MakeCurrent()
bool Surface::MakeCurrent |
( |
| ) |
const |
|
virtual |
Definition at line 50 of file surface.cc.
50 {
53 return false;
54 }
55
56 return true;
57}
◆ SwapBuffers()
bool Surface::SwapBuffers |
( |
| ) |
const |
|
virtual |
Definition at line 59 of file surface.cc.
59 {
62 return false;
63 }
64
65 return true;
66}
◆ context_
EGLContext flutter::egl::Surface::context_ = EGL_NO_CONTEXT |
|
protected |
◆ display_
EGLDisplay flutter::egl::Surface::display_ = EGL_NO_DISPLAY |
|
protected |
◆ is_valid_
bool flutter::egl::Surface::is_valid_ = true |
|
protected |
◆ surface_
EGLSurface flutter::egl::Surface::surface_ = EGL_NO_SURFACE |
|
protected |
The documentation for this class was generated from the following files: