Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
flutter::ShellTestExternalViewEmbedder Class Referencefinal

The external view embedder used by |ShellTestPlatformViewGL|. More...

#include <shell_test_external_view_embedder.h>

Inheritance diagram for flutter::ShellTestExternalViewEmbedder:
flutter::ExternalViewEmbedder

Public Types

using EndFrameCallBack = std::function< void(bool, fml::RefPtr< fml::RasterThreadMerger >)>
 

Public Member Functions

 ShellTestExternalViewEmbedder (const EndFrameCallBack &end_frame_call_back, PostPrerollResult post_preroll_result, bool support_thread_merging)
 
 ~ShellTestExternalViewEmbedder ()=default
 
void UpdatePostPrerollResult (PostPrerollResult post_preroll_result)
 
int GetSubmittedFrameCount ()
 
SkISize GetLastSubmittedFrameSize ()
 
MutatorsStack GetStack (int64_t)
 
std::vector< int64_t > GetVisitedPlatformViews ()
 
- Public Member Functions inherited from flutter::ExternalViewEmbedder
 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

The external view embedder used by |ShellTestPlatformViewGL|.

Definition at line 16 of file shell_test_external_view_embedder.h.

Member Typedef Documentation

◆ EndFrameCallBack

Definition at line 18 of file shell_test_external_view_embedder.h.

Constructor & Destructor Documentation

◆ ShellTestExternalViewEmbedder()

flutter::ShellTestExternalViewEmbedder::ShellTestExternalViewEmbedder ( const EndFrameCallBack end_frame_call_back,
PostPrerollResult  post_preroll_result,
bool  support_thread_merging 
)

Definition at line 9 of file shell_test_external_view_embedder.cc.

13 : end_frame_call_back_(end_frame_call_back),
14 post_preroll_result_(post_preroll_result),
15 support_thread_merging_(support_thread_merging),
16 submitted_frame_count_(0) {}

◆ ~ShellTestExternalViewEmbedder()

flutter::ShellTestExternalViewEmbedder::~ShellTestExternalViewEmbedder ( )
default

Member Function Documentation

◆ GetLastSubmittedFrameSize()

SkISize flutter::ShellTestExternalViewEmbedder::GetLastSubmittedFrameSize ( )

Definition at line 27 of file shell_test_external_view_embedder.cc.

27 {
28 return last_submitted_frame_size_;
29}

◆ GetStack()

MutatorsStack flutter::ShellTestExternalViewEmbedder::GetStack ( int64_t  view_id)

Definition at line 35 of file shell_test_external_view_embedder.cc.

35 {
36 return mutators_stacks_[view_id];
37}

◆ GetSubmittedFrameCount()

int flutter::ShellTestExternalViewEmbedder::GetSubmittedFrameCount ( )

Definition at line 23 of file shell_test_external_view_embedder.cc.

23 {
24 return submitted_frame_count_;
25}

◆ GetVisitedPlatformViews()

std::vector< int64_t > flutter::ShellTestExternalViewEmbedder::GetVisitedPlatformViews ( )

Definition at line 31 of file shell_test_external_view_embedder.cc.

31 {
32 return visited_platform_views_;
33}

◆ UpdatePostPrerollResult()

void flutter::ShellTestExternalViewEmbedder::UpdatePostPrerollResult ( PostPrerollResult  post_preroll_result)

Definition at line 18 of file shell_test_external_view_embedder.cc.

19 {
20 post_preroll_result_ = post_preroll_result;
21}

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