Flutter Engine
flutter::EmbedderSurfaceGL Class Referencefinal

#include <embedder_surface_gl.h>

Inheritance diagram for flutter::EmbedderSurfaceGL:
flutter::EmbedderSurface flutter::GPUSurfaceGLDelegate flutter::GPUSurfaceDelegate

Classes

struct  GLDispatchTable
 

Public Member Functions

 EmbedderSurfaceGL (GLDispatchTable gl_dispatch_table, bool fbo_reset_after_present, std::shared_ptr< EmbedderExternalViewEmbedder > external_view_embedder)
 
 ~EmbedderSurfaceGL () override
 
- Public Member Functions inherited from flutter::EmbedderSurface
 EmbedderSurface ()
 
virtual ~EmbedderSurface ()
 
- Public Member Functions inherited from flutter::GPUSurfaceGLDelegate
 ~GPUSurfaceGLDelegate () override
 
virtual bool SurfaceSupportsReadback () const
 
virtual sk_sp< const GrGLInterface > GetGLInterface () const
 
- Public Member Functions inherited from flutter::GPUSurfaceDelegate
virtual ~GPUSurfaceDelegate ()
 

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 GrGLInterface > GetDefaultPlatformGLInterface ()
 

Detailed Description

Definition at line 15 of file embedder_surface_gl.h.

Constructor & Destructor Documentation

◆ EmbedderSurfaceGL()

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

Definition at line 11 of file embedder_surface_gl.cc.

References flutter::ShellIOManager::CreateCompatibleResourceLoadingContext(), FML_LOG, flutter::GPUSurfaceGLDelegate::GetGLInterface(), flutter::EmbedderSurfaceGL::GLDispatchTable::gl_clear_current_callback, flutter::EmbedderSurfaceGL::GLDispatchTable::gl_fbo_callback, flutter::EmbedderSurfaceGL::GLDispatchTable::gl_make_current_callback, flutter::EmbedderSurfaceGL::GLDispatchTable::gl_make_resource_current_callback, flutter::EmbedderSurfaceGL::GLDispatchTable::gl_present_callback, flutter::EmbedderSurfaceGL::GLDispatchTable::gl_proc_resolver, flutter::EmbedderSurfaceGL::GLDispatchTable::gl_surface_transformation_callback, and ~EmbedderSurfaceGL().

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

◆ ~EmbedderSurfaceGL()

flutter::EmbedderSurfaceGL::~EmbedderSurfaceGL ( )
overridedefault

Referenced by EmbedderSurfaceGL().


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