Flutter Engine
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 ()
 
- Public Member Functions inherited from flutter::ExternalViewEmbedder
 ExternalViewEmbedder ()=default
 
virtual ~ExternalViewEmbedder ()=default
 
 FML_DISALLOW_COPY_AND_ASSIGN (ExternalViewEmbedder)
 

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

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.

References FML_DCHECK.

27  {
28  return last_submitted_frame_size_;
29 }

◆ GetSubmittedFrameCount()

int flutter::ShellTestExternalViewEmbedder::GetSubmittedFrameCount ( )

Definition at line 23 of file shell_test_external_view_embedder.cc.

23  {
24  return submitted_frame_count_;
25 }

◆ 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: