#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. | |
| bool | SupportsPartialRepaint () const |
| std::optional< DlIRect > | InitialDamage () |
| This is the minimal area that needs to be repainted to get correct result. | |
| void | SetDamageRegion (const std::optional< DlIRect > &buffer_damage) |
| Sets the damage region for current surface. Corresponds to. | |
| bool | SetPresentationTime (const fml::TimePoint &presentation_time) |
| Sets the presentation time for the current surface. This. | |
| bool | SwapBuffers (const std::optional< DlIRect > &surface_damage) |
This only applies to on-screen surfaces such as those created by AndroidContextGL::CreateOnscreenSurface. | |
| DlISize | GetSize () const |
Definition at line 41 of file android_egl_surface.h.
| flutter::AndroidEGLSurface::AndroidEGLSurface | ( | EGLSurface | surface, |
| EGLDisplay | display, | ||
| EGLContext | context | ||
| ) |
Definition at line 86 of file android_egl_surface.cc.
References surface.
| flutter::AndroidEGLSurface::~AndroidEGLSurface | ( | ) |
Definition at line 96 of file android_egl_surface.cc.
References FML_DCHECK.
| DlISize flutter::AndroidEGLSurface::GetSize | ( | ) | const |
EGLSurface. Definition at line 170 of file android_egl_surface.cc.
References FML_LOG, height, flutter::LogLastEGLError(), and width.
| std::optional< DlIRect > 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 166 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 101 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 129 of file android_egl_surface.cc.
References FML_LOG, flutter::kFailure, flutter::kSuccessAlreadyCurrent, flutter::kSuccessMadeCurrent, and flutter::LogLastEGLError().
| void flutter::AndroidEGLSurface::SetDamageRegion | ( | const std::optional< DlIRect > & | buffer_damage | ) |
Sets the damage region for current surface. Corresponds to.
Definition at line 141 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 146 of file android_egl_surface.cc.
References fml::TimePoint::ToEpochDelta(), and fml::TimeDelta::ToNanoseconds().
| bool flutter::AndroidEGLSurface::SupportsPartialRepaint | ( | ) | const |
Definition at line 162 of file android_egl_surface.cc.
| bool flutter::AndroidEGLSurface::SwapBuffers | ( | const std::optional< DlIRect > & | surface_damage | ) |
This only applies to on-screen surfaces such as those created by AndroidContextGL::CreateOnscreenSurface.
Definition at line 156 of file android_egl_surface.cc.
References TRACE_EVENT0.