23 std::shared_ptr<Texture> y_texture,
24 std::shared_ptr<Texture> uv_texture,
26 if (!aiks_context || !y_texture || !uv_texture) {
30 std::move(y_texture), std::move(uv_texture), yuv_color_space);
33 auto snapshot = yuv_to_rgb_filter_contents->RenderToSnapshot(
40 "MakeYUVToRGBFilter Snapshot");
41 if (!snapshot.has_value()) {
47DlImageImpeller::DlImageImpeller(std::shared_ptr<Texture>
texture,
48 OwningContext owning_context)
49 : texture_(
std::move(
texture)), owning_context_(owning_context) {}
84 const auto size = texture_ ? texture_->GetSize() :
ISize{};
90 auto size =
sizeof(*this);
92 size += texture_->GetTextureDescriptor().GetByteSizeOfBaseMipLevel();
ContentContext & GetContentContext() const
size_t GetApproximateByteSize() const override
static sk_sp< DlImageImpeller > MakeFromYUVTextures(AiksContext *aiks_context, std::shared_ptr< Texture > y_texture, std::shared_ptr< Texture > uv_texture, YUVColorSpace yuv_color_space)
bool isTextureBacked() const override
std::shared_ptr< impeller::Texture > impeller_texture() const override
If this display list image is meant to be used by the Impeller backend, an Impeller texture instance....
SkISize dimensions() const override
static sk_sp< DlImageImpeller > Make(std::shared_ptr< Texture > texture, OwningContext owning_context=OwningContext::kIO)
sk_sp< SkImage > skia_image() const override
If this display list image is meant to be used by the Skia backend, an SkImage instance....
~DlImageImpeller() override
bool isUIThreadSafe() const override
If the underlying platform image held by this object has no threading requirements for the release of...
bool isOpaque() const override
If the pixel format of this image ignores alpha, this returns true. This method might conservatively ...
OwningContext owning_context() const override
void SetBlendMode(BlendMode blend_mode)
static std::shared_ptr< FilterContents > MakeYUVToRGBFilter(std::shared_ptr< Texture > y_texture, std::shared_ptr< Texture > uv_texture, YUVColorSpace yuv_color_space)
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
static constexpr SkISize Make(int32_t w, int32_t h)