#include <embedder_render_target_skia.h>
Public Member Functions | |
| EmbedderRenderTargetSkia (FlutterBackingStore backing_store, sk_sp< SkSurface > render_surface, fml::closure on_release, MakeOrClearCurrentCallback on_make_current, MakeOrClearCurrentCallback on_clear_current) | |
| ~EmbedderRenderTargetSkia () override | |
| sk_sp< SkSurface > | GetSkiaSurface () const override |
| A render surface the rasterizer can use to draw into the backing store of this render target. | |
| impeller::RenderTarget * | GetImpellerRenderTarget () const override |
| An impeller render target the rasterizer can use to draw into the backing store. | |
| std::shared_ptr< impeller::AiksContext > | GetAiksContext () const override |
| Returns the AiksContext that should be used for rendering, if this render target is backed by Impeller. | |
| DlISize | GetRenderTargetSize () const override |
| Returns the size of the render target. | |
| SetCurrentResult | MaybeMakeCurrent () const override |
| Make the render target current. | |
| SetCurrentResult | MaybeClearCurrent () const override |
| Clear the current render target. | |
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. | |
| const FlutterBackingStore * | GetBackingStore () 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. | |
Additional Inherited Members | |
Public Types inherited from flutter::EmbedderRenderTarget | |
| using | MakeOrClearCurrentCallback = std::function< SetCurrentResult()> |
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. | |
Definition at line 12 of file embedder_render_target_skia.h.
| flutter::EmbedderRenderTargetSkia::EmbedderRenderTargetSkia | ( | FlutterBackingStore | backing_store, |
| sk_sp< SkSurface > | render_surface, | ||
| fml::closure | on_release, | ||
| MakeOrClearCurrentCallback | on_make_current, | ||
| MakeOrClearCurrentCallback | on_clear_current | ||
| ) |
Definition at line 11 of file embedder_render_target_skia.cc.
References FML_DCHECK.
|
overridedefault |
|
overridevirtual |
Returns the AiksContext that should be used for rendering, if this render target is backed by Impeller.
Implements flutter::EmbedderRenderTarget.
Definition at line 36 of file embedder_render_target_skia.cc.
|
overridevirtual |
An impeller render target the rasterizer can use to draw into the backing store.
Implements flutter::EmbedderRenderTarget.
Definition at line 30 of file embedder_render_target_skia.cc.
|
overridevirtual |
Returns the size of the render target.
Implements flutter::EmbedderRenderTarget.
Definition at line 40 of file embedder_render_target_skia.cc.
|
overridevirtual |
A render surface the rasterizer can use to draw into the backing store of this render target.
Implements flutter::EmbedderRenderTarget.
Definition at line 26 of file embedder_render_target_skia.cc.
|
overridevirtual |
Clear the current render target.
Reimplemented from flutter::EmbedderRenderTarget.
Definition at line 54 of file embedder_render_target_skia.cc.
|
overridevirtual |
Make the render target current.
Sometimes render targets are actually (for example)
EGL surfaces instead of framebuffers or textures.
In that case, we can't fully wrap them as SkSurfaces, instead,
the embedder will provide a callback that should be called
when the target surface should be made current.
Reimplemented from flutter::EmbedderRenderTarget.
Definition at line 45 of file embedder_render_target_skia.cc.