Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Static Public Member Functions | List of all members
flutter::GPUSurfaceGLDelegate Class Referenceabstract

#include <gpu_surface_gl_delegate.h>

Inheritance diagram for flutter::GPUSurfaceGLDelegate:
flutter::AndroidSurfaceGLImpeller flutter::AndroidSurfaceGLSkia flutter::AndroidSurfaceMock flutter::EmbedderSurfaceGLImpeller flutter::EmbedderSurfaceGLSkia flutter::testing::ShellTestPlatformViewGL

Public Types

using GLProcResolver = std::function< void *(const char *)>
 

Public Member Functions

 ~GPUSurfaceGLDelegate ()
 
virtual std::unique_ptr< GLContextResultGLContextMakeCurrent ()=0
 
virtual bool GLContextClearCurrent ()=0
 
virtual void GLContextSetDamageRegion (const std::optional< SkIRect > &region)
 
virtual bool GLContextPresent (const GLPresentInfo &present_info)=0
 
virtual GLFBOInfo GLContextFBO (GLFrameInfo frame_info) const =0
 
virtual bool GLContextFBOResetAfterPresent () const
 
virtual SurfaceFrame::FramebufferInfo GLContextFramebufferInfo () const
 
virtual SkMatrix GLContextSurfaceTransformation () const
 
virtual sk_sp< const GrGLInterfaceGetGLInterface () const
 
virtual GLProcResolver GetGLProcResolver () const
 
virtual bool AllowsDrawingWhenGpuDisabled () const
 

Static Public Member Functions

static sk_sp< const GrGLInterfaceGetDefaultPlatformGLInterface ()
 

Detailed Description

Definition at line 51 of file gpu_surface_gl_delegate.h.

Member Typedef Documentation

◆ GLProcResolver

Definition at line 96 of file gpu_surface_gl_delegate.h.

Constructor & Destructor Documentation

◆ ~GPUSurfaceGLDelegate()

flutter::GPUSurfaceGLDelegate::~GPUSurfaceGLDelegate ( )
default

Member Function Documentation

◆ AllowsDrawingWhenGpuDisabled()

bool flutter::GPUSurfaceGLDelegate::AllowsDrawingWhenGpuDisabled ( ) const
virtual

Definition at line 143 of file gpu_surface_gl_delegate.cc.

143 {
144 return true;
145}

◆ GetDefaultPlatformGLInterface()

sk_sp< const GrGLInterface > flutter::GPUSurfaceGLDelegate::GetDefaultPlatformGLInterface ( )
static

Definition at line 139 of file gpu_surface_gl_delegate.cc.

139 {
140 return CreateGLInterface(nullptr);
141}
static sk_sp< const GrGLInterface > CreateGLInterface(const GPUSurfaceGLDelegate::GLProcResolver &proc_resolver)

◆ GetGLInterface()

sk_sp< const GrGLInterface > flutter::GPUSurfaceGLDelegate::GetGLInterface ( ) const
virtual

Reimplemented in flutter::AndroidSurfaceGLImpeller, and flutter::AndroidSurfaceGLSkia.

Definition at line 134 of file gpu_surface_gl_delegate.cc.

134 {
136}
virtual GLProcResolver GetGLProcResolver() const

◆ GetGLProcResolver()

GPUSurfaceGLDelegate::GLProcResolver flutter::GPUSurfaceGLDelegate::GetGLProcResolver ( ) const
virtual

Definition at line 51 of file gpu_surface_gl_delegate.cc.

52 {
53 return nullptr;
54}

◆ GLContextClearCurrent()

virtual bool flutter::GPUSurfaceGLDelegate::GLContextClearCurrent ( )
pure virtual

◆ GLContextFBO()

virtual GLFBOInfo flutter::GPUSurfaceGLDelegate::GLContextFBO ( GLFrameInfo  frame_info) const
pure virtual

◆ GLContextFBOResetAfterPresent()

bool flutter::GPUSurfaceGLDelegate::GLContextFBOResetAfterPresent ( ) const
virtual

Definition at line 34 of file gpu_surface_gl_delegate.cc.

34 {
35 return false;
36}

◆ GLContextFramebufferInfo()

SurfaceFrame::FramebufferInfo flutter::GPUSurfaceGLDelegate::GLContextFramebufferInfo ( ) const
virtual

Reimplemented in flutter::AndroidSurfaceGLImpeller, and flutter::AndroidSurfaceGLSkia.

Definition at line 38 of file gpu_surface_gl_delegate.cc.

39 {
40 SurfaceFrame::FramebufferInfo res;
41 res.supports_readback = true;
42 return res;
43}

◆ GLContextMakeCurrent()

virtual std::unique_ptr< GLContextResult > flutter::GPUSurfaceGLDelegate::GLContextMakeCurrent ( )
pure virtual

◆ GLContextPresent()

virtual bool flutter::GPUSurfaceGLDelegate::GLContextPresent ( const GLPresentInfo present_info)
pure virtual

◆ GLContextSetDamageRegion()

virtual void flutter::GPUSurfaceGLDelegate::GLContextSetDamageRegion ( const std::optional< SkIRect > &  region)
inlinevirtual

Reimplemented in flutter::AndroidSurfaceGLImpeller, and flutter::AndroidSurfaceGLSkia.

Definition at line 64 of file gpu_surface_gl_delegate.h.

64{}

◆ GLContextSurfaceTransformation()

SkMatrix flutter::GPUSurfaceGLDelegate::GLContextSurfaceTransformation ( ) const
virtual

Definition at line 45 of file gpu_surface_gl_delegate.cc.

45 {
47 matrix.setIdentity();
48 return matrix;
49}
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258

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