Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::ExternalViewEmbedder Class Referenceabstract

#include <embedded_views.h>

Inheritance diagram for flutter::ExternalViewEmbedder:
flutter::AndroidExternalViewEmbedder flutter::EmbedderExternalViewEmbedder flutter::IOSExternalViewEmbedder flutter::ShellTestExternalViewEmbedder flutter::TesterExternalViewEmbedder flutter::testing::MockViewEmbedder flutter_runner::ExternalViewEmbedder

Public Member Functions

 ExternalViewEmbedder ()=default
 
virtual ~ExternalViewEmbedder ()=default
 
virtual void CollectView (int64_t view_id)
 
virtual DlCanvasGetRootCanvas ()=0
 
virtual void CancelFrame ()=0
 
virtual void BeginFrame (GrDirectContext *context, const fml::RefPtr< fml::RasterThreadMerger > &raster_thread_merger)=0
 
virtual void PrerollCompositeEmbeddedView (int64_t platform_view_id, std::unique_ptr< EmbeddedViewParams > params)=0
 
virtual PostPrerollResult PostPrerollAction (const fml::RefPtr< fml::RasterThreadMerger > &raster_thread_merger)
 
virtual DlCanvasCompositeEmbeddedView (int64_t platform_view_id)=0
 
virtual void PrepareFlutterView (SkISize frame_size, double device_pixel_ratio)=0
 
virtual void SubmitFlutterView (int64_t flutter_view_id, GrDirectContext *context, const std::shared_ptr< impeller::AiksContext > &aiks_context, std::unique_ptr< SurfaceFrame > frame)
 
virtual void EndFrame (bool should_resubmit_frame, const fml::RefPtr< fml::RasterThreadMerger > &raster_thread_merger)
 
virtual bool SupportsDynamicThreadMerging ()
 
virtual void Teardown ()
 
void SetUsedThisFrame (bool used_this_frame)
 
bool GetUsedThisFrame () const
 
virtual void PushVisitedPlatformView (int64_t platform_view_id)
 
virtual void PushFilterToVisitedPlatformViews (const std::shared_ptr< const DlImageFilter > &filter, const SkRect &filter_rect)
 

Detailed Description

Definition at line 395 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 ( GrDirectContext context,
const fml::RefPtr< fml::RasterThreadMerger > &  raster_thread_merger 
)
pure virtual

◆ CancelFrame()

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

◆ CollectView()

void flutter::ExternalViewEmbedder::CollectView ( int64_t  view_id)
virtual

Reimplemented in flutter::EmbedderExternalViewEmbedder.

Definition at line 45 of file embedded_views.cc.

45{}

◆ CompositeEmbeddedView()

virtual DlCanvas * flutter::ExternalViewEmbedder::CompositeEmbeddedView ( int64_t  platform_view_id)
pure virtual

◆ EndFrame()

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

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

Definition at line 475 of file embedded_views.h.

477 {}

◆ GetRootCanvas()

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

◆ GetUsedThisFrame()

bool flutter::ExternalViewEmbedder::GetUsedThisFrame ( ) const
inline

Definition at line 499 of file embedded_views.h.

499{ return used_this_frame_; }

◆ PostPrerollAction()

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

◆ PrepareFlutterView()

virtual void flutter::ExternalViewEmbedder::PrepareFlutterView ( SkISize  frame_size,
double  device_pixel_ratio 
)
pure virtual

◆ PrerollCompositeEmbeddedView()

virtual void flutter::ExternalViewEmbedder::PrerollCompositeEmbeddedView ( int64_t  platform_view_id,
std::unique_ptr< EmbeddedViewParams params 
)
pure virtual

◆ PushFilterToVisitedPlatformViews()

virtual void flutter::ExternalViewEmbedder::PushFilterToVisitedPlatformViews ( const std::shared_ptr< const DlImageFilter > &  filter,
const SkRect filter_rect 
)
inlinevirtual

Definition at line 512 of file embedded_views.h.

514 {}

◆ PushVisitedPlatformView()

virtual void flutter::ExternalViewEmbedder::PushVisitedPlatformView ( int64_t  platform_view_id)
inlinevirtual

Definition at line 503 of file embedded_views.h.

503{}

◆ SetUsedThisFrame()

void flutter::ExternalViewEmbedder::SetUsedThisFrame ( bool  used_this_frame)
inline

Definition at line 493 of file embedded_views.h.

493 {
494 used_this_frame_ = used_this_frame;
495 }

◆ SubmitFlutterView()

void flutter::ExternalViewEmbedder::SubmitFlutterView ( int64_t  flutter_view_id,
GrDirectContext context,
const std::shared_ptr< impeller::AiksContext > &  aiks_context,
std::unique_ptr< SurfaceFrame frame 
)
virtual

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

Definition at line 47 of file embedded_views.cc.

51 {
52 frame->Submit();
53}
double frame
Definition: examples.cpp:31

◆ SupportsDynamicThreadMerging()

bool flutter::ExternalViewEmbedder::SupportsDynamicThreadMerging ( )
virtual

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

Definition at line 55 of file embedded_views.cc.

55 {
56 return false;
57}

◆ Teardown()

void flutter::ExternalViewEmbedder::Teardown ( )
virtual

Reimplemented in flutter::AndroidExternalViewEmbedder.

Definition at line 59 of file embedded_views.cc.

59{}

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