Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::AndroidEGLSurfaceDamage Class Reference

Public Member Functions

void init (EGLDisplay display, EGLContext context)
 
void SetDamageRegion (EGLDisplay display, EGLSurface surface, const std::optional< SkIRect > &region)
 
bool SupportsPartialRepaint () const
 
std::optional< SkIRectInitialDamage (EGLDisplay display, EGLSurface surface)
 
bool SwapBuffersWithDamage (EGLDisplay display, EGLSurface surface, const std::optional< SkIRect > &damage)
 

Detailed Description

Definition at line 61 of file android_egl_surface.cc.

Member Function Documentation

◆ init()

void flutter::AndroidEGLSurfaceDamage::init ( EGLDisplay  display,
EGLContext  context 
)
inline

Definition at line 63 of file android_egl_surface.cc.

63{}

◆ InitialDamage()

std::optional< SkIRect > flutter::AndroidEGLSurfaceDamage::InitialDamage ( EGLDisplay  display,
EGLSurface  surface 
)
inline

Definition at line 73 of file android_egl_surface.cc.

73 {
74 return std::nullopt;
75 }

◆ SetDamageRegion()

void flutter::AndroidEGLSurfaceDamage::SetDamageRegion ( EGLDisplay  display,
EGLSurface  surface,
const std::optional< SkIRect > &  region 
)
inline

Definition at line 65 of file android_egl_surface.cc.

67 {}

◆ SupportsPartialRepaint()

bool flutter::AndroidEGLSurfaceDamage::SupportsPartialRepaint ( ) const
inline

This was disabled after discussion in https://github.com/flutter/flutter/issues/123353

Definition at line 71 of file android_egl_surface.cc.

71{ return false; }

◆ SwapBuffersWithDamage()

bool flutter::AndroidEGLSurfaceDamage::SwapBuffersWithDamage ( EGLDisplay  display,
EGLSurface  surface,
const std::optional< SkIRect > &  damage 
)
inline

Definition at line 77 of file android_egl_surface.cc.

79 {
80 return eglSwapBuffers(display, surface);
81 }
VkSurfaceKHR surface
Definition: main.cc:49

The documentation for this class was generated from the following file: