5#include "flutter/display_list/image/dl_image_skia.h"
26 return image_ ? image_->
isOpaque() :
false;
52 auto size =
sizeof(*this);
55 const auto kMipmapOverhead = image_->
hasMipmaps() ? 4.0 / 3.0 : 1.0;
56 const size_t image_byte_size =
info.computeMinByteSize() * kMipmapOverhead;
57 size += image_byte_size;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
const SkImageInfo & imageInfo() const
SkISize dimensions() const
virtual bool isTextureBacked() const =0
bool isOpaque() const override
If the pixel format of this image ignores alpha, this returns true. This method might conservatively ...
sk_sp< SkImage > skia_image() const override
If this display list image is meant to be used by the Skia backend, an SkImage instance....
size_t GetApproximateByteSize() const override
DlImageSkia(sk_sp< SkImage > image)
SkISize dimensions() const override
bool isUIThreadSafe() const override
If the underlying platform image held by this object has no threading requirements for the release of...
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....
sk_sp< const SkImage > image
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 MakeEmpty()