8#ifndef SkImageAndroid_DEFINED
9#define SkImageAndroid_DEFINED
struct AHardwareBuffer AHardwareBuffer
@ kTopLeft_GrSurfaceOrigin
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
SK_API sk_sp< SkImage > PinnableRasterFromBitmap(const SkBitmap &)
SK_API sk_sp< SkImage > DeferredFromAHardwareBuffer(AHardwareBuffer *hardwareBuffer, SkAlphaType alphaType=kPremul_SkAlphaType)
SK_API sk_sp< SkImage > TextureFromAHardwareBufferWithData(GrDirectContext *context, const SkPixmap &pixmap, AHardwareBuffer *hardwareBuffer, GrSurfaceOrigin surfaceOrigin=kTopLeft_GrSurfaceOrigin)
sk_sp< SkImage > MakePinnableFromRasterBitmap(const SkBitmap &b)
bool PinAsTexture(GrRecordingContext *, SkImage *)
void UnpinTexture(GrRecordingContext *, SkImage *)