Add enable backpressure layer flag

Test: presubmit
Bug: 176967609
Change-Id: I1875f1d4098154fac55d48e1f68babc3eed5a8ff
This commit is contained in:
Vishnu Nair
2021-01-28 11:50:29 -08:00
parent 83043c0c9c
commit cc0297c2b2

View File

@@ -416,6 +416,15 @@ public final class SurfaceControl implements Parcelable {
*/
public static final int SECURE = 0x00000080;
/**
* Queue up BufferStateLayer buffers instead of dropping the oldest buffer when this flag is
* set. This blocks the client until all the buffers have been presented. If the buffers
* have presentation timestamps, then we may drop buffers.
* @hide
*/
public static final int ENABLE_BACKPRESSURE = 0x00000100;
/**
* Surface creation flag: Creates a surface where color components are interpreted
* as "non pre-multiplied" by their alpha channel. Of course this flag is