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

#include <embedder_render_target_impeller.h>

Inheritance diagram for flutter::EmbedderRenderTargetImpeller:
flutter::EmbedderRenderTarget

Public Member Functions

 EmbedderRenderTargetImpeller (FlutterBackingStore backing_store, std::shared_ptr< impeller::AiksContext > aiks_context, std::unique_ptr< impeller::RenderTarget > impeller_target, fml::closure on_release, fml::closure framebuffer_destruction_callback)
 
 ~EmbedderRenderTargetImpeller () override
 
sk_sp< SkSurfaceGetSkiaSurface () const override
 A render surface the rasterizer can use to draw into the backing store of this render target. More...
 
impeller::RenderTargetGetImpellerRenderTarget () const override
 An impeller render target the rasterizer can use to draw into the backing store. More...
 
std::shared_ptr< impeller::AiksContextGetAiksContext () const override
 Returns the AiksContext that should be used for rendering, if this render target is backed by Impeller. More...
 
SkISize GetRenderTargetSize () const override
 Returns the size of the render target. More...
 
- Public Member Functions inherited from flutter::EmbedderRenderTarget
virtual ~EmbedderRenderTarget ()
 Destroys this instance of the render target and invokes the callback for the embedder to release its resource associated with the particular backing store. More...
 
virtual sk_sp< SkSurfaceGetSkiaSurface () const =0
 A render surface the rasterizer can use to draw into the backing store of this render target. More...
 
virtual impeller::RenderTargetGetImpellerRenderTarget () const =0
 An impeller render target the rasterizer can use to draw into the backing store. More...
 
virtual std::shared_ptr< impeller::AiksContextGetAiksContext () const =0
 Returns the AiksContext that should be used for rendering, if this render target is backed by Impeller. More...
 
virtual SkISize GetRenderTargetSize () const =0
 Returns the size of the render target. More...
 
const FlutterBackingStoreGetBackingStore () const
 The embedder backing store descriptor. This is the descriptor that was given to the engine by the embedder. This descriptor may contain context the embedder can use to associate it resources with the compositor layers when they are given back to it in present callback. The engine does not use this in any way. More...
 

Additional Inherited Members

- Protected Member Functions inherited from flutter::EmbedderRenderTarget
 EmbedderRenderTarget (FlutterBackingStore backing_store, fml::closure on_release)
 Creates a render target whose backing store is managed by the embedder. The way this render target is exposed to the engine is via an SkSurface and a callback that is invoked by this object in its destructor. More...
 

Detailed Description

Definition at line 12 of file embedder_render_target_impeller.h.

Constructor & Destructor Documentation

◆ EmbedderRenderTargetImpeller()

flutter::EmbedderRenderTargetImpeller::EmbedderRenderTargetImpeller ( FlutterBackingStore  backing_store,
std::shared_ptr< impeller::AiksContext aiks_context,
std::unique_ptr< impeller::RenderTarget impeller_target,
fml::closure  on_release,
fml::closure  framebuffer_destruction_callback 
)

Definition at line 12 of file embedder_render_target_impeller.cc.

18 : EmbedderRenderTarget(backing_store, std::move(on_release)),
19 aiks_context_(std::move(aiks_context)),
20 impeller_target_(std::move(impeller_target)),
21 framebuffer_destruction_callback_(
22 std::move(framebuffer_destruction_callback)) {
23 FML_DCHECK(aiks_context_);
24 FML_DCHECK(impeller_target_);
25}
EmbedderRenderTarget(FlutterBackingStore backing_store, fml::closure on_release)
Creates a render target whose backing store is managed by the embedder. The way this render target is...
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ ~EmbedderRenderTargetImpeller()

flutter::EmbedderRenderTargetImpeller::~EmbedderRenderTargetImpeller ( )
override

Definition at line 27 of file embedder_render_target_impeller.cc.

27 {
28 if (framebuffer_destruction_callback_) {
29 framebuffer_destruction_callback_();
30 }
31}

Member Function Documentation

◆ GetAiksContext()

std::shared_ptr< impeller::AiksContext > flutter::EmbedderRenderTargetImpeller::GetAiksContext ( ) const
overridevirtual

Returns the AiksContext that should be used for rendering, if this render target is backed by Impeller.

Returns
The Impeller Aiks context.

Implements flutter::EmbedderRenderTarget.

Definition at line 43 of file embedder_render_target_impeller.cc.

43 {
44 return aiks_context_;
45}

◆ GetImpellerRenderTarget()

impeller::RenderTarget * flutter::EmbedderRenderTargetImpeller::GetImpellerRenderTarget ( ) const
overridevirtual

An impeller render target the rasterizer can use to draw into the backing store.

Returns
The Impeller render target.

Implements flutter::EmbedderRenderTarget.

Definition at line 37 of file embedder_render_target_impeller.cc.

38 {
39 return impeller_target_.get();
40}

◆ GetRenderTargetSize()

SkISize flutter::EmbedderRenderTargetImpeller::GetRenderTargetSize ( ) const
overridevirtual

Returns the size of the render target.

Returns
The size of the render target.

Implements flutter::EmbedderRenderTarget.

Definition at line 47 of file embedder_render_target_impeller.cc.

47 {
48 auto size = impeller_target_->GetRenderTargetSize();
49 return SkISize::Make(size.width, size.height);
50}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
static constexpr SkISize Make(int32_t w, int32_t h)
Definition: SkSize.h:20

◆ GetSkiaSurface()

sk_sp< SkSurface > flutter::EmbedderRenderTargetImpeller::GetSkiaSurface ( ) const
overridevirtual

A render surface the rasterizer can use to draw into the backing store of this render target.

Returns
The render surface.

Implements flutter::EmbedderRenderTarget.

Definition at line 33 of file embedder_render_target_impeller.cc.

33 {
34 return nullptr;
35}

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