Flutter Engine
The Flutter Engine
|
#include <SkImage_Lazy.h>
Classes | |
class | ScopedGenerator |
struct | Validator |
Protected Member Functions | |
virtual bool | readPixelsProxy (GrDirectContext *, const SkPixmap &) const |
Protected Member Functions inherited from SkImage_Base | |
SkImage_Base (const SkImageInfo &info, uint32_t uniqueID) | |
Additional Inherited Members | |
Public Types inherited from SkImage_Base | |
enum class | Type { kRaster , kRasterPinnable , kLazy , kLazyPicture , kGanesh , kGaneshYUVA , kGraphite , kGraphiteYUVA } |
Public Types inherited from SkImage | |
enum | CachingHint { kAllow_CachingHint , kDisallow_CachingHint } |
enum class | RescaleGamma : bool { kSrc , kLinear } |
enum class | RescaleMode { kNearest , kLinear , kRepeatedLinear , kRepeatedCubic } |
enum | LegacyBitmapMode { kRO_LegacyBitmapMode } |
using | ReadPixelsContext = void * |
using | ReadPixelsCallback = void(ReadPixelsContext, std::unique_ptr< const AsyncReadResult >) |
Definition at line 38 of file SkImage_Lazy.h.
SkImage_Lazy::SkImage_Lazy | ( | Validator * | validator | ) |
Definition at line 100 of file SkImage_Lazy.cpp.
void SkImage_Lazy::addUniqueIDListener | ( | sk_sp< SkIDChangeListener > | listener | ) | const |
Definition at line 275 of file SkImage_Lazy.cpp.
sk_sp< SharedGenerator > SkImage_Lazy::generator | ( | ) | const |
Definition at line 153 of file SkImage_Lazy.cpp.
sk_sp< SkCachedData > SkImage_Lazy::getPlanes | ( | const SkYUVAPixmapInfo::SupportedDataTypes & | supportedDataTypes, |
SkYUVAPixmaps * | pixmaps | ||
) | const |
Definition at line 245 of file SkImage_Lazy.cpp.
|
overridevirtual |
Implements SkImage_Base.
Definition at line 107 of file SkImage_Lazy.cpp.
|
overridevirtual |
Returns true if SkImage can be drawn on either raster surface or GPU surface. If context is nullptr, tests if SkImage draws on raster surface; otherwise, tests if SkImage draws on GPU surface associated with context.
SkImage backed by GPU texture may become invalid if associated context is invalid. lazy image may be invalid and may not draw to raster surface or GPU surface or both.
context | GPU context |
example: https://fiddle.skia.org/c/@Image_isValid
Implements SkImage.
Definition at line 185 of file SkImage_Lazy.cpp.
|
inlineoverridevirtual |
Implements SkImage_Base.
Definition at line 57 of file SkImage_Lazy.h.
|
overridevirtual |
Implements SkImage_Base.
Definition at line 157 of file SkImage_Lazy.cpp.
|
overridevirtual |
Implements SkImage_Base.
Definition at line 210 of file SkImage_Lazy.cpp.
|
overridevirtual |
Implements SkImage_Base.
Reimplemented in SkImage_LazyTexture.
Definition at line 191 of file SkImage_Lazy.cpp.
|
overridevirtual |
Implements SkImage_Base.
Definition at line 198 of file SkImage_Lazy.cpp.
|
overridevirtual |
Implements SkImage_Base.
Definition at line 162 of file SkImage_Lazy.cpp.
Reimplemented from SkImage_Base.
Definition at line 176 of file SkImage_Lazy.cpp.
|
finalvirtual |
Implements SkImage_Base.
Definition at line 227 of file SkImage_Lazy.cpp.
|
inlineprotectedvirtual |
Reimplemented in SkImage_LazyTexture.
Definition at line 87 of file SkImage_Lazy.h.
|
inlineoverridevirtual |
Implements SkImage_Base.
Reimplemented in SkImage_Picture.
Definition at line 73 of file SkImage_Lazy.h.