Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
flutter::EmbedderSurfaceGLSkia Class Referencefinal

#include <embedder_surface_gl_skia.h>

Inheritance diagram for flutter::EmbedderSurfaceGLSkia:
flutter::EmbedderSurface flutter::GPUSurfaceGLDelegate

Classes

struct  GLDispatchTable
 

Public Member Functions

 EmbedderSurfaceGLSkia (GLDispatchTable gl_dispatch_table, bool fbo_reset_after_present, std::shared_ptr< EmbedderExternalViewEmbedder > external_view_embedder)
 
 ~EmbedderSurfaceGLSkia () override
 
- Public Member Functions inherited from flutter::EmbedderSurface
 EmbedderSurface ()
 
virtual ~EmbedderSurface ()
 
virtual bool IsValid () const =0
 
virtual std::unique_ptr< SurfaceCreateGPUSurface ()=0
 
virtual std::shared_ptr< impeller::ContextCreateImpellerContext () const
 
virtual sk_sp< GrDirectContextCreateResourceContext () const
 
- Public Member Functions inherited from flutter::GPUSurfaceGLDelegate
 ~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
 

Additional Inherited Members

- Public Types inherited from flutter::GPUSurfaceGLDelegate
using GLProcResolver = std::function< void *(const char *)>
 
- Static Public Member Functions inherited from flutter::GPUSurfaceGLDelegate
static sk_sp< const GrGLInterfaceGetDefaultPlatformGLInterface ()
 

Detailed Description

Definition at line 15 of file embedder_surface_gl_skia.h.

Constructor & Destructor Documentation

◆ EmbedderSurfaceGLSkia()

flutter::EmbedderSurfaceGLSkia::EmbedderSurfaceGLSkia ( GLDispatchTable  gl_dispatch_table,
bool  fbo_reset_after_present,
std::shared_ptr< EmbedderExternalViewEmbedder external_view_embedder 
)

Definition at line 13 of file embedder_surface_gl_skia.cc.

17 : gl_dispatch_table_(std::move(gl_dispatch_table)),
18 fbo_reset_after_present_(fbo_reset_after_present),
19 external_view_embedder_(std::move(external_view_embedder)) {
20 // Make sure all required members of the dispatch table are checked.
21 if (!gl_dispatch_table_.gl_make_current_callback ||
22 !gl_dispatch_table_.gl_clear_current_callback ||
23 !gl_dispatch_table_.gl_present_callback ||
24 !gl_dispatch_table_.gl_fbo_callback ||
25 !gl_dispatch_table_.gl_populate_existing_damage) {
26 return;
27 }
28
29 valid_ = true;
30}
std::function< GLFBOInfo(intptr_t)> gl_populate_existing_damage
std::function< intptr_t(GLFrameInfo)> gl_fbo_callback
std::function< bool(GLPresentInfo)> gl_present_callback

◆ ~EmbedderSurfaceGLSkia()

flutter::EmbedderSurfaceGLSkia::~EmbedderSurfaceGLSkia ( )
overridedefault

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