Flutter Engine
The Flutter Engine
|
#include <Image_Base_Graphite.h>
Protected Member Functions | |
Image_Base (const SkImageInfo &info, uint32_t uniqueID) | |
void | linkDevices (const Image_Base *) |
void | linkDevice (sk_sp< Device >) |
Protected Member Functions inherited from SkImage_Base | |
SkImage_Base (const SkImageInfo &info, uint32_t uniqueID) | |
Static Protected Member Functions | |
static sk_sp< Image > | CopyAsDraw (Recorder *, const Image_Base *, const SkIRect &subset, const SkColorInfo &dstColorInfo, Budgeted, Mipmapped, SkBackingFit) |
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 26 of file Image_Base_Graphite.h.
|
overridedefault |
|
protected |
Definition at line 19 of file Image_Base_Graphite.cpp.
|
staticprotected |
Definition at line 94 of file Image_Base_Graphite.cpp.
|
virtual |
Reimplemented in skgpu::graphite::Image.
Definition at line 122 of file Image_Base_Graphite.cpp.
|
inlineoverridevirtual |
bool skgpu::graphite::Image_Base::isDynamic | ( | ) | const |
Definition at line 75 of file Image_Base_Graphite.cpp.
|
inlineoverridevirtual |
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 44 of file Image_Base_Graphite.h.
Definition at line 33 of file Image_Base_Graphite.cpp.
|
protected |
Definition at line 24 of file Image_Base_Graphite.cpp.
|
overridevirtual |
Experimental. Creates SkImage in target SkColorType and SkColorSpace. Returns nullptr if SkImage could not be created.
Returns original SkImage if it is in target SkColorType and SkColorSpace.
If this image is graphite-backed, the recorder parameter is required.
targetColorType | SkColorType of returned SkImage |
targetColorSpace | SkColorSpace of returned SkImage |
recorder | The Recorder in which to create the new image |
RequiredProperties | properties the returned SkImage must possess (e.g. mipmaps) |
Implements SkImage.
Definition at line 151 of file Image_Base_Graphite.cpp.
void skgpu::graphite::Image_Base::notifyInUse | ( | Recorder * | recorder | ) | const |
Definition at line 41 of file Image_Base_Graphite.cpp.
|
overridevirtual |
Default implementation does a rescale/read and then calls the callback.
Reimplemented from SkImage_Base.
Definition at line 187 of file Image_Base_Graphite.cpp.
|
overridevirtual |
Default implementation does a rescale/read/yuv conversion and then calls the callback.
Reimplemented from SkImage_Base.
Definition at line 197 of file Image_Base_Graphite.cpp.
|
overridevirtual |
Implements SkImage_Base.
Definition at line 180 of file Image_Base_Graphite.cpp.
|
overridevirtual |
Implements SkImage_Base.
Definition at line 175 of file Image_Base_Graphite.cpp.
|
overridevirtual |
Implements SkImage_Base.
Definition at line 131 of file Image_Base_Graphite.cpp.
|
inlineoverridevirtual |