HardwareBuffer.UsageComposerOverlay Field

Definition

The buffer will be used as a hardware composer overlay layer.

[Android.Runtime.Register("USAGE_COMPOSER_OVERLAY", ApiSince=33)]
public const long UsageComposerOverlay = 2048;
[<Android.Runtime.Register("USAGE_COMPOSER_OVERLAY", ApiSince=33)>]
val mutable UsageComposerOverlay : int64

Field Value

Value = 2048

Implements

Attributes

Remarks

The buffer will be used as a hardware composer overlay layer. That is, it will be displayed using the system compositor via SurfaceControl

This flag is currently only needed when using android.view.SurfaceControl.Transaction#setBuffer(SurfaceControl, HardwareBuffer) to set a buffer. In all other cases, the framework adds this flag internally to buffers that could be presented in a composer overlay.

Java documentation for android.hardware.HardwareBuffer.USAGE_COMPOSER_OVERLAY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to