summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-02-24 15:26:37 -0800
committer Colin Cross <ccross@android.com> 2020-02-25 20:45:58 +0000
commitfbcf9d77fe6321ba7e03d50f965e8c16ea4290c3 (patch)
tree0daf5c7448f1c0937ed66ac7a3a2186d7dcf8361
parent219643eebd19e550100f317ea52854bde4047d8f (diff)
Make bitmap.h C-compatible when __ANDROID_API__ >= 30
C requires a typedef for AHardwareBuffer. Fixes: frameworks/native/include/android/bitmap.h:246:9: error: must use 'struct' tag to refer to type 'AHardwareBuffer' Fixes: 150165785 Test: m checkbuild Change-Id: I6d475e91317ff7a9264144d4cd6c6c9b46d10196
-rw-r--r--include/android/bitmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/android/bitmap.h b/include/android/bitmap.h
index 727a4af2f9..2631b144af 100644
--- a/include/android/bitmap.h
+++ b/include/android/bitmap.h
@@ -227,6 +227,7 @@ int AndroidBitmap_compress(const AndroidBitmapInfo* info,
AndroidBitmap_CompressWriteFunc fn) __INTRODUCED_IN(30);
struct AHardwareBuffer;
+typedef struct AHardwareBuffer AHardwareBuffer;
/**
* Retrieve the native object associated with a HARDWARE Bitmap.