diff options
author | Scott Lobdell <slobdell@google.com> | 2021-04-25 19:53:06 +0000 |
---|---|---|
committer | Rob Seymour <rseymour@google.com> | 2021-05-06 22:32:25 +0000 |
commit | afbe732519a96ff0a42a1c98bd59fd04080b4a96 (patch) | |
tree | 9ca836d438ca47756e4761ee4b844b85bd7e8857 /libs/nativewindow/include/android/hardware_buffer.h | |
parent | 7a303d6e8135bbd0a32075986c9f7083e0fbef23 (diff) | |
parent | 7132116dfd8bdb9c5b505db8d8a27526a4e889d8 (diff) |
Merge SP1A.210425.001
Change-Id: I219cc0af128876534b77a72c36979fa1fe08ba13
Diffstat (limited to 'libs/nativewindow/include/android/hardware_buffer.h')
-rw-r--r-- | libs/nativewindow/include/android/hardware_buffer.h | 73 |
1 files changed, 42 insertions, 31 deletions
diff --git a/libs/nativewindow/include/android/hardware_buffer.h b/libs/nativewindow/include/android/hardware_buffer.h index 20a1f74792..d93a84cd25 100644 --- a/libs/nativewindow/include/android/hardware_buffer.h +++ b/libs/nativewindow/include/android/hardware_buffer.h @@ -164,45 +164,56 @@ enum AHardwareBuffer_Format { * Buffer usage flags, specifying how the buffer will be accessed. */ enum AHardwareBuffer_UsageFlags { - /// The buffer will never be locked for direct CPU reads using the - /// AHardwareBuffer_lock() function. Note that reading the buffer - /// using OpenGL or Vulkan functions or memory mappings is still - /// allowed. + /** + * The buffer will never be locked for direct CPU reads using the + * AHardwareBuffer_lock() function. Note that reading the buffer + * using OpenGL or Vulkan functions or memory mappings is still + * allowed. + */ AHARDWAREBUFFER_USAGE_CPU_READ_NEVER = 0UL, - /// The buffer will sometimes be locked for direct CPU reads using - /// the AHardwareBuffer_lock() function. Note that reading the - /// buffer using OpenGL or Vulkan functions or memory mappings - /// does not require the presence of this flag. + /** + * The buffer will sometimes be locked for direct CPU reads using + * the AHardwareBuffer_lock() function. Note that reading the + * buffer using OpenGL or Vulkan functions or memory mappings + * does not require the presence of this flag. + */ AHARDWAREBUFFER_USAGE_CPU_READ_RARELY = 2UL, - /// The buffer will often be locked for direct CPU reads using - /// the AHardwareBuffer_lock() function. Note that reading the - /// buffer using OpenGL or Vulkan functions or memory mappings - /// does not require the presence of this flag. + /** + * The buffer will often be locked for direct CPU reads using + * the AHardwareBuffer_lock() function. Note that reading the + * buffer using OpenGL or Vulkan functions or memory mappings + * does not require the presence of this flag. + */ AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN = 3UL, - /// CPU read value mask. - AHARDWAREBUFFER_USAGE_CPU_READ_MASK = 0xFUL, - /// The buffer will never be locked for direct CPU writes using the - /// AHardwareBuffer_lock() function. Note that writing the buffer - /// using OpenGL or Vulkan functions or memory mappings is still - /// allowed. + /** CPU read value mask. */ + AHARDWAREBUFFER_USAGE_CPU_READ_MASK = 0xFUL, + /** + * The buffer will never be locked for direct CPU writes using the + * AHardwareBuffer_lock() function. Note that writing the buffer + * using OpenGL or Vulkan functions or memory mappings is still + * allowed. + */ AHARDWAREBUFFER_USAGE_CPU_WRITE_NEVER = 0UL << 4, - /// The buffer will sometimes be locked for direct CPU writes using - /// the AHardwareBuffer_lock() function. Note that writing the - /// buffer using OpenGL or Vulkan functions or memory mappings - /// does not require the presence of this flag. + /** + * The buffer will sometimes be locked for direct CPU writes using + * the AHardwareBuffer_lock() function. Note that writing the + * buffer using OpenGL or Vulkan functions or memory mappings + * does not require the presence of this flag. + */ AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY = 2UL << 4, - /// The buffer will often be locked for direct CPU writes using - /// the AHardwareBuffer_lock() function. Note that writing the - /// buffer using OpenGL or Vulkan functions or memory mappings - /// does not require the presence of this flag. + /** + * The buffer will often be locked for direct CPU writes using + * the AHardwareBuffer_lock() function. Note that writing the + * buffer using OpenGL or Vulkan functions or memory mappings + * does not require the presence of this flag. + */ AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN = 3UL << 4, - /// CPU write value mask. + /** CPU write value mask. */ AHARDWAREBUFFER_USAGE_CPU_WRITE_MASK = 0xFUL << 4, - - /// The buffer will be read from by the GPU as a texture. + /** The buffer will be read from by the GPU as a texture. */ AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE = 1UL << 8, - /// The buffer will be written to by the GPU as a framebuffer attachment. + /** The buffer will be written to by the GPU as a framebuffer attachment.*/ AHARDWAREBUFFER_USAGE_GPU_FRAMEBUFFER = 1UL << 9, /** * The buffer will be written to by the GPU as a framebuffer @@ -237,7 +248,7 @@ enum AHardwareBuffer_UsageFlags { * buffers are expected to behave. */ AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT = 1UL << 14, - /// The buffer will be read by a hardware video encoder. + /** The buffer will be read by a hardware video encoder. */ AHARDWAREBUFFER_USAGE_VIDEO_ENCODE = 1UL << 16, /** * The buffer will be used for direct writes from sensors. |