5#ifndef FLUTTER_DISPLAY_LIST_IMAGE_DL_IMAGE_SKIA_H_
6#define FLUTTER_DISPLAY_LIST_IMAGE_DL_IMAGE_SKIA_H_
15 static sk_sp<DlImage>
Make(
const SkImage*
image);
16 static sk_sp<DlImage>
Make(sk_sp<SkImage>
image);
49 sk_sp<SkImage> image_;
Represents an image whose allocation is (usually) resident on device memory.
Type
The backend type of this image.
bool isOpaque() const override
If the pixel format of this image ignores alpha, this returns true. This method might conservatively ...
Type GetImageType() const override
Returns the backend type of this image.
const DlImageSkia * asSkiaImage() const override
Safe downcast to DlImageSkia.
size_t GetApproximateByteSize() const override
bool isUIThreadSafe() const override
If the underlying platform image held by this object has no threading requirements for the release of...
DlISize GetSize() const override
virtual sk_sp< SkImage > skia_image() const
bool isTextureBacked() const override
Returns true if the image is backed by a GPU texture.
DlColorSpace GetColorSpace() const override
Gets the color space of the image.
static sk_sp< DlImage > Make(const SkImage *image)
FlutterVulkanImage * image
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)