7#ifndef GrAHardwareBufferUtils_DEFINED
8#define GrAHardwareBufferUtils_DEFINED
12#if defined(SK_BUILD_FOR_ANDROID) && __ANDROID_API__ >= 26
23namespace GrAHardwareBufferUtils {
27SkColorType GetSkColorTypeFromBufferFormat(uint32_t bufferFormat);
29#if !defined(SK_DISABLE_LEGACY_ANDROID_HW_UTILS)
31 uint32_t bufferFormat,
bool requireKnownFormat);
35 bool requireKnownFormat);
37 uint32_t bufferFormat,
bool requireKnownFormat);
39typedef void* TexImageCtx;
40typedef void (*DeleteImageProc)(TexImageCtx);
65#if !defined(SK_DISABLE_LEGACY_ANDROID_HW_UTILS)
68 DeleteImageProc* deleteProc,
69 UpdateImageProc* updateProc,
70 TexImageCtx* imageCtx,
71 bool isProtectedContent,
74 bool fromAndroidWindow =
false);
80 DeleteImageProc* deleteProc,
81 UpdateImageProc* updateProc,
82 TexImageCtx* imageCtx,
83 bool isProtectedContent,
90 DeleteImageProc* deleteProc,
91 UpdateImageProc* updateProc,
92 TexImageCtx* imageCtx,
93 bool isProtectedContent,
96 bool fromAndroidWindow =
false);
struct AHardwareBuffer AHardwareBuffer