@@ -128,15 +128,14 @@ bitflags::bitflags! {
128128 #[ doc( alias = "AHARDWAREBUFFER_USAGE_GPU_MIPMAP_COMPLETE" ) ]
129129 const GPU_MIPMAP_COMPLETE = ffi:: AHardwareBuffer_UsageFlags :: AHARDWAREBUFFER_USAGE_GPU_MIPMAP_COMPLETE . 0 ;
130130
131- // TODO: Only available in a newer NDK
132- // /// Usage: The buffer is used for front-buffer rendering. When front-buffering rendering
133- // /// is specified, different usages may adjust their behavior as a result. For example, when
134- // /// used as [`HardwareBufferFormat::GPU_COLOR_OUTPUT`] the buffer will behave similar to a
135- // /// single-buffered window. When used with [`HardwareBufferFormat::COMPOSER_OVERLAY`], the
136- // /// system will try to prioritize the buffer receiving an overlay plane & avoid caching it
137- // /// in intermediate composition buffers.
138- // #[doc(alias = "AHARDWAREBUFFER_USAGE_FRONT_BUFFER")]
139- // const USAGE_FRONT_BUFFER = ffi::AHardwareBuffer_UsageFlags::AHARDWAREBUFFER_USAGE_FRONT_BUFFER.0;
131+ /// Usage: The buffer is used for front-buffer rendering. When front-buffering rendering
132+ /// is specified, different usages may adjust their behavior as a result. For example, when
133+ /// used as [`HardwareBufferFormat::GPU_COLOR_OUTPUT`] the buffer will behave similar to a
134+ /// single-buffered window. When used with [`HardwareBufferFormat::COMPOSER_OVERLAY`], the
135+ /// system will try to prioritize the buffer receiving an overlay plane & avoid caching it
136+ /// in intermediate composition buffers.
137+ #[ doc( alias = "AHARDWAREBUFFER_USAGE_FRONT_BUFFER" ) ]
138+ const USAGE_FRONT_BUFFER = ffi:: AHardwareBuffer_UsageFlags :: AHARDWAREBUFFER_USAGE_FRONT_BUFFER . 0 ;
140139
141140 #[ doc( alias = "AHARDWAREBUFFER_USAGE_VENDOR_0" ) ]
142141 const VENDOR_0 = ffi:: AHardwareBuffer_UsageFlags :: AHARDWAREBUFFER_USAGE_VENDOR_0 . 0 ;
0 commit comments