Flutter Engine
The Flutter Engine
|
#include <GrAHardwareBufferImageGenerator.h>
Static Public Member Functions | |
static std::unique_ptr< SkImageGenerator > | Make (AHardwareBuffer *, SkAlphaType, sk_sp< SkColorSpace >, GrSurfaceOrigin) |
static void | DeleteGLTexture (void *ctx) |
Additional Inherited Members | |
Protected Member Functions inherited from GrTextureGenerator | |
GrTextureGenerator (const SkImageInfo &info, uint32_t uniqueId=kNeedNewImageUniqueID) | |
Protected Member Functions inherited from SkImageGenerator | |
SkImageGenerator (const SkImageInfo &info, uint32_t uniqueId=kNeedNewImageUniqueID) | |
virtual sk_sp< SkData > | onRefEncodedData () |
virtual bool | onGetPixels (const SkImageInfo &, void *, size_t, const Options &) |
virtual bool | onIsValid (GrRecordingContext *) const |
virtual bool | onIsProtected () const |
virtual bool | onQueryYUVAInfo (const SkYUVAPixmapInfo::SupportedDataTypes &, SkYUVAPixmapInfo *) const |
virtual bool | onGetYUVAPlanes (const SkYUVAPixmaps &) |
Protected Attributes inherited from SkImageGenerator | |
const SkImageInfo | fInfo |
Static Protected Attributes inherited from SkImageGenerator | |
static constexpr int | kNeedNewImageUniqueID = 0 |
GrAHardwareBufferImageGenerator allows to create an SkImage attached to an existing android native hardware buffer. A hardware buffer has to be created with AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE usage, because it is bound to an external texture using an EGLImage. The image generator will keep a reference to the hardware buffer for its lifetime. A hardware buffer can be shared between processes and same buffer can be used in multiple GPU contexts. To implement certain features like tiling, Skia may copy the texture to avoid OpenGL API limitations.
Definition at line 31 of file GrAHardwareBufferImageGenerator.h.
|
override |
|
static |
|
static |