Flutter Engine
flutter::ExternalViewEmbedder Class Referenceabstract

#include <embedded_views.h>

Inheritance diagram for flutter::ExternalViewEmbedder:
flutter::AndroidExternalViewEmbedder flutter::EmbedderExternalViewEmbedder flutter::IOSExternalViewEmbedder flutter::SceneUpdateContext flutter::ShellTestExternalViewEmbedder flutter_runner::FuchsiaExternalViewEmbedder

Public Member Functions

 ExternalViewEmbedder ()=default
 
virtual ~ExternalViewEmbedder ()=default
 
virtual SkCanvas * GetRootCanvas ()=0
 
virtual void CancelFrame ()=0
 
virtual void BeginFrame (SkISize frame_size, GrDirectContext *context, double device_pixel_ratio, fml::RefPtr< fml::RasterThreadMerger > raster_thread_merger)=0
 
virtual void PrerollCompositeEmbeddedView (int view_id, std::unique_ptr< EmbeddedViewParams > params)=0
 
virtual PostPrerollResult PostPrerollAction (fml::RefPtr< fml::RasterThreadMerger > raster_thread_merger)
 
virtual std::vector< SkCanvas * > GetCurrentCanvases ()=0
 
virtual SkCanvas * CompositeEmbeddedView (int view_id)=0
 
virtual void SubmitFrame (GrDirectContext *context, std::unique_ptr< SurfaceFrame > frame)
 
virtual void EndFrame (bool should_resubmit_frame, fml::RefPtr< fml::RasterThreadMerger > raster_thread_merger)
 
virtual bool SupportsDynamicThreadMerging ()
 
 FML_DISALLOW_COPY_AND_ASSIGN (ExternalViewEmbedder)
 

Detailed Description

Definition at line 261 of file embedded_views.h.

Constructor & Destructor Documentation

◆ ExternalViewEmbedder()

flutter::ExternalViewEmbedder::ExternalViewEmbedder ( )
default

◆ ~ExternalViewEmbedder()

virtual flutter::ExternalViewEmbedder::~ExternalViewEmbedder ( )
virtualdefault

Member Function Documentation

◆ BeginFrame()

virtual void flutter::ExternalViewEmbedder::BeginFrame ( SkISize  frame_size,
GrDirectContext *  context,
double  device_pixel_ratio,
fml::RefPtr< fml::RasterThreadMerger raster_thread_merger 
)
pure virtual

◆ CancelFrame()

virtual void flutter::ExternalViewEmbedder::CancelFrame ( )
pure virtual

◆ CompositeEmbeddedView()

virtual SkCanvas* flutter::ExternalViewEmbedder::CompositeEmbeddedView ( int  view_id)
pure virtual

◆ EndFrame()

virtual void flutter::ExternalViewEmbedder::EndFrame ( bool  should_resubmit_frame,
fml::RefPtr< fml::RasterThreadMerger raster_thread_merger 
)
inlinevirtual

◆ FML_DISALLOW_COPY_AND_ASSIGN()

flutter::ExternalViewEmbedder::FML_DISALLOW_COPY_AND_ASSIGN ( ExternalViewEmbedder  )

◆ GetCurrentCanvases()

virtual std::vector<SkCanvas*> flutter::ExternalViewEmbedder::GetCurrentCanvases ( )
pure virtual

◆ GetRootCanvas()

virtual SkCanvas* flutter::ExternalViewEmbedder::GetRootCanvas ( )
pure virtual

◆ PostPrerollAction()

virtual PostPrerollResult flutter::ExternalViewEmbedder::PostPrerollAction ( fml::RefPtr< fml::RasterThreadMerger raster_thread_merger)
inlinevirtual

◆ PrerollCompositeEmbeddedView()

virtual void flutter::ExternalViewEmbedder::PrerollCompositeEmbeddedView ( int  view_id,
std::unique_ptr< EmbeddedViewParams params 
)
pure virtual

◆ SubmitFrame()

void flutter::ExternalViewEmbedder::SubmitFrame ( GrDirectContext *  context,
std::unique_ptr< SurfaceFrame frame 
)
virtual

Reimplemented in flutter_runner::FuchsiaExternalViewEmbedder, and flutter::AndroidExternalViewEmbedder.

Definition at line 9 of file embedded_views.cc.

10  {
11  frame->Submit();
12 };

◆ SupportsDynamicThreadMerging()

bool flutter::ExternalViewEmbedder::SupportsDynamicThreadMerging ( )
virtual

Reimplemented in flutter_runner::FuchsiaExternalViewEmbedder, and flutter::AndroidExternalViewEmbedder.

Definition at line 63 of file embedded_views.cc.

63  {
64  return false;
65 }

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