12std::unique_ptr<impeller::PlaygroundImpl>
30std::shared_ptr<DlSurfaceInstance>
35std::unique_ptr<DlSurfaceInstance>
43std::unique_ptr<DlSurfaceInstanceImpeller>
45 std::shared_ptr<impeller::Context> context,
58 std::shared_ptr<impeller::RenderTarget>
target;
59 if (context->GetCapabilities()->SupportsOffscreenMSAA()) {
60 target = std::make_shared<impeller::RenderTarget>(
65 "Picture Snapshot MSAA",
67 kDefaultColorAttachmentConfigMSAA
70 target = std::make_shared<impeller::RenderTarget>(
77 kDefaultColorAttachmentConfig
83 return std::make_unique<DlSurfaceInstanceImpeller>(std::move(context),
DlSurfaceProviderImpeller()
bool InitializeSurface(size_t width, size_t height, PixelFormat format) override
static std::unique_ptr< impeller::PlaygroundImpl > MakePlayground(impeller::PlaygroundBackend backend, const impeller::PlaygroundSwitches &switches)
std::unique_ptr< DlSurfaceInstance > MakeOffscreenSurface(size_t width, size_t height, PixelFormat format) const override
virtual impeller::PlaygroundImpl * GetPlayground() const =0
bool SupportsPixelFormat(PixelFormat format) const override
std::shared_ptr< DlSurfaceInstance > GetPrimarySurface() const override
bool TargetsImpeller() const override
static std::unique_ptr< PlaygroundImpl > Create(PlaygroundBackend backend, PlaygroundSwitches switches)
a wrapper around the impeller [Allocator] instance that can be used to provide caching of allocated r...
virtual RenderTarget CreateOffscreenMSAA(const Context &context, ISize size, int mip_count, std::string_view label="Offscreen MSAA", RenderTarget::AttachmentConfigMSAA color_attachment_config=RenderTarget::kDefaultColorAttachmentConfigMSAA, std::optional< RenderTarget::AttachmentConfig > stencil_attachment_config=RenderTarget::kDefaultStencilAttachmentConfig, const std::shared_ptr< Texture > &existing_color_msaa_texture=nullptr, const std::shared_ptr< Texture > &existing_color_resolve_texture=nullptr, const std::shared_ptr< Texture > &existing_depth_stencil_texture=nullptr, std::optional< PixelFormat > target_pixel_format=std::nullopt)
virtual RenderTarget CreateOffscreen(const Context &context, ISize size, int mip_count, std::string_view label="Offscreen", RenderTarget::AttachmentConfig color_attachment_config=RenderTarget::kDefaultColorAttachmentConfig, std::optional< RenderTarget::AttachmentConfig > stencil_attachment_config=RenderTarget::kDefaultStencilAttachmentConfig, const std::shared_ptr< Texture > &existing_color_texture=nullptr, const std::shared_ptr< Texture > &existing_depth_stencil_texture=nullptr, std::optional< PixelFormat > target_pixel_format=std::nullopt)
uint32_t uint32_t * format
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all 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