summaryrefslogtreecommitdiff
path: root/include/android_stub/vndk/hardware_buffer.h
diff options
context:
space:
mode:
authorYiwei Zhang <zzyiwei@chromium.org>2021-10-07 18:46:49 +0000
committerMarge Bot <eric+marge@anholt.net>2021-10-09 00:42:32 +0000
commit2881b43d2c3253d43c53d1c2c83638fb6eae95b9 (patch)
tree41939a402531e4160c218971973fcca8236606d7 /include/android_stub/vndk/hardware_buffer.h
parent8ebf0d1105ed8c7860e65094708556ace7b394bf (diff)
android_stub: update platform headers to include atrace
1. Add tracing headers 2. Update to reflect relocated headers 3. Remove redundant apex/window.h Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13255>
Diffstat (limited to 'include/android_stub/vndk/hardware_buffer.h')
-rw-r--r--include/android_stub/vndk/hardware_buffer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/android_stub/vndk/hardware_buffer.h b/include/android_stub/vndk/hardware_buffer.h
index 3392d7f0940..12f86916844 100644
--- a/include/android_stub/vndk/hardware_buffer.h
+++ b/include/android_stub/vndk/hardware_buffer.h
@@ -81,6 +81,20 @@ enum {
AHARDWAREBUFFER_FORMAT_YCbCr_422_I = 0x14,
};
+/**
+ * Buffer usage flags.
+ */
+enum {
+ /* for future proofing, keep these in sync with hardware/gralloc.h */
+
+ /* The buffer will be written by the HW camera pipeline. */
+ AHARDWAREBUFFER_USAGE_CAMERA_WRITE = 2UL << 16,
+ /* The buffer will be read by the HW camera pipeline. */
+ AHARDWAREBUFFER_USAGE_CAMERA_READ = 4UL << 16,
+ /* Mask for the camera access values. */
+ AHARDWAREBUFFER_USAGE_CAMERA_MASK = 6UL << 16,
+};
+
__END_DECLS
#endif /* ANDROID_VNDK_NATIVEWINDOW_AHARDWAREBUFFER_H */