5 #ifndef FLUTTER_IMPELLER_DISPLAY_LIST_DL_IMAGE_IMPELLER_H_
6 #define FLUTTER_IMPELLER_DISPLAY_LIST_DL_IMAGE_IMPELLER_H_
8 #include "flutter/display_list/image/dl_image.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,
51 flutter::DlISize
GetSize()
const override;
59 #if FML_OS_IOS_SIMULATOR
61 bool IsFakeImage()
const override {
return is_fake_image_; }
65 std::shared_ptr<Texture> texture_;
66 OwningContext owning_context_;
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;
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
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
~DlImageImpeller() override
bool isUIThreadSafe() const override
bool isOpaque() const override
OwningContext owning_context() const override