#include <dl_image_skia.h>
Public Member Functions | |
| DlImageSkia (sk_sp< SkImage > image) | |
| ~DlImageSkia () override | |
| Type | GetImageType () const override |
| Returns the backend type of this image. | |
| const DlImageSkia * | asSkiaImage () const override |
| Safe downcast to DlImageSkia. | |
| virtual sk_sp< SkImage > | skia_image () const |
| bool | isTextureBacked () const override |
| Returns true if the image is backed by a GPU texture. | |
| 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 | 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. | |
| DlISize | GetSize () const override |
| size_t | GetApproximateByteSize () const override |
| DlColorSpace | GetColorSpace () const override |
| Gets the color space of the image. | |
Public Member Functions inherited from flutter::DlImage | |
| virtual | ~DlImage () |
| virtual const impeller::DlImageImpeller * | asImpellerImage () const |
| Safe downcast to DlImageImpeller. | |
| 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< 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 } |
| enum class | Type { kSkia , kImpeller } |
| The backend type of this image. More... | |
Protected Member Functions inherited from flutter::DlImage | |
| DlImage () | |
Definition at line 13 of file dl_image_skia.h.
|
explicit |
Definition at line 25 of file dl_image_skia.cc.
|
overridedefault |
|
inlineoverridevirtual |
Safe downcast to DlImageSkia.
Reimplemented from flutter::DlImage.
Definition at line 26 of file dl_image_skia.h.
|
overridevirtual |
Implements flutter::DlImage.
Definition at line 62 of file dl_image_skia.cc.
References flutter::size.
|
overridevirtual |
Gets the color space of the image.
Implements flutter::DlImage.
Definition at line 74 of file dl_image_skia.cc.
References flutter::kSRGB.
|
inlineoverridevirtual |
Returns the backend type of this image.
Implements flutter::DlImage.
Definition at line 24 of file dl_image_skia.h.
References flutter::DlImage::kSkia.
|
overridevirtual |
Implements flutter::DlImage.
Definition at line 57 of file dl_image_skia.cc.
References flutter::ToDlISize().
|
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 41 of file dl_image_skia.cc.
|
overridevirtual |
Returns true if the image is backed by a GPU texture.
Implements flutter::DlImage.
Definition at line 36 of file dl_image_skia.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 46 of file dl_image_skia.cc.
|
static |
Definition at line 11 of file dl_image_skia.cc.
References image.
Referenced by animatedImage_getCurrentFrame(), flutter::testing::BM_DrawImage(), flutter::testing::BM_DrawImageNine(), flutter::testing::BM_DrawImageRect(), flutter::testing::CreateAllRenderingOps(), flutter::Picture::DoRasterizeToImage(), flutter::testing::MakeTestImage(), flutter::testing::MakeTestImage(), flutter::testing::MockTexture::MakeTestTexture(), flutter::RasterCache::Rasterize(), flutter::testing::DlSurfaceInstanceSkiaBase::SnapshotToImage(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::testing::TEST().
|
static |
|
virtual |
Reimplemented in flutter::DlDeferredImageGPUSkia, and flutter::DlImageGPU.
Definition at line 31 of file dl_image_skia.cc.
Referenced by flutter::DlImage::Equals().