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"
29 const std::shared_ptr<Context>&
context)
const = 0;
34 static sk_sp<DlImageImpeller>
Make(
35 std::shared_ptr<Texture> texture,
36 OwningContext owning_context = OwningContext::kIO);
40 std::shared_ptr<Texture> y_texture,
41 std::shared_ptr<Texture> uv_texture,
54 const std::shared_ptr<Context>&
context)
const override;
59 flutter::DlISize
GetSize()
const override;
64 std::shared_ptr<Texture> texture_;
65 OwningContext owning_context_;
std::shared_ptr< Texture > GetCachedTexture(const ContentContext &renderer) const
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
virtual std::shared_ptr< Texture > GetImpellerTexture(const std::shared_ptr< Context > &context) const =0
static sk_sp< DlImageImpeller > Make(std::shared_ptr< Texture > texture, OwningContext owning_context=OwningContext::kIO)
const DlImageImpeller * asImpellerImage() const override
Type GetImageType() const override
flutter::DlColorSpace GetColorSpace() const override
DlImageImpellerTexture(std::shared_ptr< Texture > texture, OwningContext owning_context)
~DlImageImpellerTexture() override
bool isUIThreadSafe() const override
flutter::DlISize GetSize() const override
bool isOpaque() const override
std::shared_ptr< Texture > GetImpellerTexture(const std::shared_ptr< Context > &context) const override
size_t GetApproximateByteSize() const override
OwningContext owning_context() const override
std::shared_ptr< ContextGLES > context