#include <dl_image_impeller.h>
Public Member Functions | |
| ~DlImageImpeller () 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. Null otherwise. | |
| 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. Null otherwise. | |
| bool | isOpaque () const override |
| 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. | |
| bool | isTextureBacked () const override |
| bool | isUIThreadSafe () const override |
| 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. | |
| flutter::DlISize | GetSize () const override |
| size_t | GetApproximateByteSize () const override |
| OwningContext | owning_context () const override |
Public Member Functions inherited from flutter::DlImage | |
| virtual | ~DlImage () |
| int | width () const |
| int | height () const |
| DlIRect | GetBounds () 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) |
Static Public Member Functions inherited from flutter::DlImage | |
| static sk_sp< DlImage > | Make (const SkImage *image) |
| static sk_sp< DlImage > | Make (sk_sp< SkImage > image) |
Additional Inherited Members | |
Public Types inherited from flutter::DlImage | |
| enum class | OwningContext { kRaster , kIO } |
Protected Member Functions inherited from flutter::DlImage | |
| DlImage () | |
Definition at line 15 of file dl_image_impeller.h.
|
overridedefault |
|
overridevirtual |
Implements flutter::DlImage.
Definition at line 122 of file dl_image_impeller.cc.
|
overridevirtual |
Implements flutter::DlImage.
Definition at line 115 of file dl_image_impeller.cc.
|
overridevirtual |
If this display list image is meant to be used by the Impeller backend, an Impeller texture instance. Null otherwise.
Implements flutter::DlImage.
Definition at line 92 of file dl_image_impeller.cc.
|
overridevirtual |
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.
Implements flutter::DlImage.
Definition at line 97 of file dl_image_impeller.cc.
|
overridevirtual |
Implements flutter::DlImage.
Definition at line 103 of file dl_image_impeller.cc.
|
overridevirtual |
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.
Implements flutter::DlImage.
Definition at line 109 of file dl_image_impeller.cc.
|
static |
Definition at line 23 of file dl_image_impeller.cc.
References owning_context(), and texture.
Referenced by flutter::gpu::Texture::AsImage(), impeller::DlPlayground::CreateDlImageForFixture(), impeller::GoldenPlaygroundTest::CreateDlImageForFixture(), MakeFromYUVTextures(), impeller::interop::Texture::MakeImage(), flutter::testing::DlMetalSurfaceProvider::MakeImpellerImage(), flutter::SnapshotControllerImpeller::MakeRasterSnapshot(), impeller::interop::ReadSamplersAndUniforms(), 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 33 of file dl_image_impeller.cc.
References impeller::AiksContext::GetContentContext(), impeller::ContentContext::GetRenderTargetCache(), impeller::kSrc, Make(), impeller::FilterContents::MakeYUVToRGBFilter(), and impeller::Entity::SetBlendMode().
|
inlineoverridevirtual |
Reimplemented from flutter::DlImage.
Definition at line 57 of file dl_image_impeller.h.
Referenced by Make().
|
overridevirtual |
If this display list image is meant to be used by the Skia backend, an SkImage instance. Null otherwise.
Implements flutter::DlImage.
Definition at line 87 of file dl_image_impeller.cc.