Flutter Engine
The Flutter Engine
|
#include <android_egl_surface.h>
Public Member Functions | |
AndroidEGLSurface (EGLSurface surface, EGLDisplay display, EGLContext context) | |
~AndroidEGLSurface () | |
bool | IsValid () const |
AndroidEGLSurfaceMakeCurrentStatus | MakeCurrent () const |
Binds the EGLContext context to the current rendering thread and to the draw and read surface. More... | |
bool | SupportsPartialRepaint () const |
std::optional< SkIRect > | InitialDamage () |
This is the minimal area that needs to be repainted to get correct result. More... | |
void | SetDamageRegion (const std::optional< SkIRect > &buffer_damage) |
Sets the damage region for current surface. Corresponds to. More... | |
bool | SetPresentationTime (const fml::TimePoint &presentation_time) |
Sets the presentation time for the current surface. This. More... | |
bool | SwapBuffers (const std::optional< SkIRect > &surface_damage) |
This only applies to on-screen surfaces such as those created by AndroidContextGL::CreateOnscreenSurface . More... | |
SkISize | GetSize () const |
Definition at line 41 of file android_egl_surface.h.
flutter::AndroidEGLSurface::AndroidEGLSurface | ( | EGLSurface | surface, |
EGLDisplay | display, | ||
EGLContext | context | ||
) |
Definition at line 84 of file android_egl_surface.cc.
flutter::AndroidEGLSurface::~AndroidEGLSurface | ( | ) |
Definition at line 94 of file android_egl_surface.cc.
SkISize flutter::AndroidEGLSurface::GetSize | ( | ) | const |
EGLSurface
. Definition at line 168 of file android_egl_surface.cc.
std::optional< SkIRect > flutter::AndroidEGLSurface::InitialDamage | ( | ) |
This is the minimal area that needs to be repainted to get correct result.
With double or triple buffering this buffer content may lag behind current front buffer and the rect accounts for accumulated damage.
Definition at line 164 of file android_egl_surface.cc.
bool flutter::AndroidEGLSurface::IsValid | ( | ) | const |
EGLSurface
reference is valid. That is, if the surface doesn't point to EGL_NO_SURFACE
. Definition at line 99 of file android_egl_surface.cc.
AndroidEGLSurfaceMakeCurrentStatus flutter::AndroidEGLSurface::MakeCurrent | ( | ) | const |
Binds the EGLContext context to the current rendering thread and to the draw and read surface.
Definition at line 127 of file android_egl_surface.cc.
void flutter::AndroidEGLSurface::SetDamageRegion | ( | const std::optional< SkIRect > & | buffer_damage | ) |
Sets the damage region for current surface. Corresponds to.
Definition at line 139 of file android_egl_surface.cc.
bool flutter::AndroidEGLSurface::SetPresentationTime | ( | const fml::TimePoint & | presentation_time | ) |
Sets the presentation time for the current surface. This.
Definition at line 144 of file android_egl_surface.cc.
bool flutter::AndroidEGLSurface::SupportsPartialRepaint | ( | ) | const |
Definition at line 160 of file android_egl_surface.cc.
bool flutter::AndroidEGLSurface::SwapBuffers | ( | const std::optional< SkIRect > & | surface_damage | ) |
This only applies to on-screen surfaces such as those created by AndroidContextGL::CreateOnscreenSurface
.
Definition at line 154 of file android_egl_surface.cc.