Flutter Engine
The Flutter Engine
|
#include <external_view_embedder.h>
Public Member Functions | |
AndroidExternalViewEmbedder (const AndroidContext &android_context, std::shared_ptr< PlatformViewAndroidJNI > jni_facade, std::shared_ptr< AndroidSurfaceFactory > surface_factory, const TaskRunners &task_runners) | |
void | PrerollCompositeEmbeddedView (int64_t view_id, std::unique_ptr< flutter::EmbeddedViewParams > params) override |
DlCanvas * | CompositeEmbeddedView (int64_t view_id) override |
void | SubmitFlutterView (int64_t flutter_view_id, GrDirectContext *context, const std::shared_ptr< impeller::AiksContext > &aiks_context, std::unique_ptr< SurfaceFrame > frame) override |
PostPrerollResult | PostPrerollAction (const fml::RefPtr< fml::RasterThreadMerger > &raster_thread_merger) override |
DlCanvas * | GetRootCanvas () override |
void | BeginFrame (GrDirectContext *context, const fml::RefPtr< fml::RasterThreadMerger > &raster_thread_merger) override |
void | PrepareFlutterView (SkISize frame_size, double device_pixel_ratio) override |
void | CancelFrame () override |
void | EndFrame (bool should_resubmit_frame, const fml::RefPtr< fml::RasterThreadMerger > &raster_thread_merger) override |
bool | SupportsDynamicThreadMerging () override |
void | Teardown () override |
SkRect | GetViewRect (int64_t view_id) const |
Public Member Functions inherited from flutter::ExternalViewEmbedder | |
ExternalViewEmbedder ()=default | |
virtual | ~ExternalViewEmbedder ()=default |
virtual void | CollectView (int64_t view_id) |
virtual DlCanvas * | GetRootCanvas ()=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 DlCanvas * | CompositeEmbeddedView (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) |
Allows to embed Android views into a Flutter application.
This class calls Java methods via |PlatformViewAndroidJNI| to manage the lifecycle of the Android view corresponding to |flutter::PlatformViewLayer|.
It also orchestrates overlay surfaces. These are Android views that render above (by Z order) the Android view corresponding to |flutter::PlatformViewLayer|.
Definition at line 29 of file external_view_embedder.h.
flutter::AndroidExternalViewEmbedder::AndroidExternalViewEmbedder | ( | const AndroidContext & | android_context, |
std::shared_ptr< PlatformViewAndroidJNI > | jni_facade, | ||
std::shared_ptr< AndroidSurfaceFactory > | surface_factory, | ||
const TaskRunners & | task_runners | ||
) |
Definition at line 12 of file external_view_embedder.cc.
|
overridevirtual |
Implements flutter::ExternalViewEmbedder.
Definition at line 264 of file external_view_embedder.cc.
|
overridevirtual |
Implements flutter::ExternalViewEmbedder.
Definition at line 291 of file external_view_embedder.cc.
|
overridevirtual |
Implements flutter::ExternalViewEmbedder.
Definition at line 46 of file external_view_embedder.cc.
|
overridevirtual |
Reimplemented from flutter::ExternalViewEmbedder.
Definition at line 296 of file external_view_embedder.cc.
|
overridevirtual |
Implements flutter::ExternalViewEmbedder.
Definition at line 251 of file external_view_embedder.cc.
SkRect flutter::AndroidExternalViewEmbedder::GetViewRect | ( | int64_t | view_id | ) | const |
Definition at line 53 of file external_view_embedder.cc.
|
overridevirtual |
Reimplemented from flutter::ExternalViewEmbedder.
Definition at line 219 of file external_view_embedder.cc.
|
overridevirtual |
Implements flutter::ExternalViewEmbedder.
Definition at line 274 of file external_view_embedder.cc.
|
overridevirtual |
Implements flutter::ExternalViewEmbedder.
Definition at line 25 of file external_view_embedder.cc.
|
overridevirtual |
Reimplemented from flutter::ExternalViewEmbedder.
Definition at line 66 of file external_view_embedder.cc.
|
overridevirtual |
Reimplemented from flutter::ExternalViewEmbedder.
Definition at line 307 of file external_view_embedder.cc.
|
overridevirtual |
Reimplemented from flutter::ExternalViewEmbedder.
Definition at line 312 of file external_view_embedder.cc.