5#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_DL_IMAGE_IMPELLER_H_
6#define FLUTTER_IMPELLER_DISPLAY_LIST_DL_IMAGE_IMPELLER_H_
17 static sk_sp<DlImageImpeller>
Make(
18 std::shared_ptr<Texture>
texture,
20#
if FML_OS_IOS_SIMULATOR
22 bool is_fake_image =
false
28 std::shared_ptr<Texture> y_texture,
29 std::shared_ptr<Texture> uv_texture,
59#if FML_OS_IOS_SIMULATOR
61 bool IsFakeImage()
const override {
return is_fake_image_; }
65 std::shared_ptr<Texture> texture_;
67#if FML_OS_IOS_SIMULATOR
68 bool is_fake_image_ =
false;
71 explicit DlImageImpeller(std::shared_ptr<Texture>
texture,
73#
if FML_OS_IOS_SIMULATOR
75 bool is_fake_image =
false
79 DlImageImpeller(
const DlImageImpeller&) =
delete;
81 DlImageImpeller& operator=(
const DlImageImpeller&) =
delete;
Represents an image whose allocation is (usually) resident on device memory.
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....
static sk_sp< DlImageImpeller > Make(std::shared_ptr< Texture > texture, OwningContext owning_context=OwningContext::kIO)
flutter::DlISize GetSize() const override
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