5#include "flutter/shell/platform/embedder/embedder_render_target_impeller.h"
7#include "flutter/fml/logging.h"
8#include "flutter/impeller/renderer/render_target.h"
14 std::shared_ptr<impeller::AiksContext> aiks_context,
15 std::unique_ptr<impeller::RenderTarget> impeller_target,
19 aiks_context_(
std::move(aiks_context)),
20 impeller_target_(
std::move(impeller_target)),
21 framebuffer_destruction_callback_(
22 std::move(framebuffer_destruction_callback)) {
28 if (framebuffer_destruction_callback_) {
29 framebuffer_destruction_callback_();
39 return impeller_target_.get();
42std::shared_ptr<impeller::AiksContext>
48 auto size = impeller_target_->GetRenderTargetSize();
~EmbedderRenderTargetImpeller() 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.
SkISize GetRenderTargetSize() const override
Returns the size of the render target.
std::shared_ptr< impeller::AiksContext > GetAiksContext() const override
Returns the AiksContext that should be used for rendering, if this render target is backed by Impelle...
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)
Describes a surface whose backing store is managed by the embedder. The type of surface depends on th...
#define FML_DCHECK(condition)
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
std::function< void()> closure
static constexpr SkISize Make(int32_t w, int32_t h)