#include <dl_image_impeller.h>
Public Member Functions | |
| Type | GetImageType () const override |
| Returns the backend type of this image. | |
| const DlImageImpeller * | asImpellerImage () const override |
| Safe downcast to DlImageImpeller. | |
| bool | isTextureBacked () const override |
| Returns true if the image is backed by a GPU texture. | |
| virtual std::shared_ptr< Texture > | GetImpellerTexture (const std::shared_ptr< Context > &context) const =0 |
| std::shared_ptr< Texture > | GetCachedTexture (const ContentContext &renderer) const |
Public Member Functions inherited from flutter::DlImage | |
| virtual | ~DlImage () |
| virtual const DlImageSkia * | asSkiaImage () const |
| Safe downcast to DlImageSkia. | |
| virtual DlColorSpace | GetColorSpace () const =0 |
| Gets the color space of the image. | |
| virtual bool | isOpaque () const =0 |
| If the pixel format of this image ignores alpha, this returns true. This method might conservatively return false when it cannot guarnatee an opaque image, for example when the pixel format of the image supports alpha but the image is made up of entirely opaque pixels. | |
| virtual bool | isUIThreadSafe () const =0 |
| If the underlying platform image held by this object has no threading requirements for the release of that image (or if arrangements have already been made to forward that image to the correct thread upon deletion), this method returns true. | |
| virtual DlISize | GetSize () const =0 |
| virtual size_t | GetApproximateByteSize () const =0 |
| int | width () const |
| int | height () const |
| DlIRect | GetBounds () const |
| virtual OwningContext | owning_context () const |
| virtual std::optional< std::string > | get_error () const |
| bool | Equals (const DlImage *other) const |
| bool | Equals (const DlImage &other) const |
| bool | Equals (const sk_sp< const DlImage > &other) const |
Static Public Member Functions | |
| static sk_sp< DlImageImpeller > | Make (std::shared_ptr< Texture > texture, OwningContext owning_context=OwningContext::kIO) |
| static sk_sp< DlImageImpeller > | MakeFromYUVTextures (AiksContext *aiks_context, std::shared_ptr< Texture > y_texture, std::shared_ptr< Texture > uv_texture, YUVColorSpace yuv_color_space) |
Additional Inherited Members | |
Public Types inherited from flutter::DlImage | |
| enum class | OwningContext { kRaster , kIO } |
| enum class | Type { kSkia , kImpeller } |
| The backend type of this image. More... | |
Protected Member Functions inherited from flutter::DlImage | |
| DlImage () | |
Definition at line 17 of file dl_image_impeller.h.
|
inlineoverridevirtual |
Safe downcast to DlImageImpeller.
Reimplemented from flutter::DlImage.
Definition at line 23 of file dl_image_impeller.h.
| std::shared_ptr< Texture > impeller::DlImageImpeller::GetCachedTexture | ( | const ContentContext & | renderer | ) | const |
Definition at line 54 of file dl_image_impeller.cc.
References impeller::ContentContext::GetCachedTexture(), impeller::ContentContext::GetContext(), GetImpellerTexture(), impeller::ContentContext::SetCachedTexture(), and texture.
|
inlineoverridevirtual |
Returns the backend type of this image.
Implements flutter::DlImage.
Definition at line 20 of file dl_image_impeller.h.
References flutter::DlImage::kImpeller.
|
pure virtual |
Implemented in impeller::DlImageImpellerTexture, Skwasm::DlWimpImageBase, Skwasm::DlWimpImageFromTexture, Skwasm::DlWimpImageFromPixels, and Skwasm::DlWimpImageFromPicture.
Referenced by GetCachedTexture().
|
inlineoverridevirtual |
Returns true if the image is backed by a GPU texture.
Implements flutter::DlImage.
Definition at line 26 of file dl_image_impeller.h.
|
static |
Definition at line 12 of file dl_image_impeller.cc.
References flutter::DlImage::owning_context(), and texture.
Referenced by flutter::gpu::Texture::AsImage(), impeller::DlPlayground::CreateDlImageForFixture(), impeller::GoldenPlaygroundTest::CreateDlImageForFixture(), MakeFromYUVTextures(), impeller::interop::Texture::MakeImage(), impeller::interop::ReadSamplersAndUniforms(), flutter::testing::DlSurfaceInstanceImpeller::SnapshotToImage(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and flutter::ImageDecoderImpeller::UploadTextureToStorage().
|
static |
Definition at line 20 of file dl_image_impeller.cc.
References impeller::AiksContext::GetContentContext(), impeller::ContentContext::GetRenderTargetCache(), impeller::kSrc, Make(), impeller::FilterContents::MakeYUVToRGBFilter(), and impeller::Entity::SetBlendMode().