Merge "Add enable backpressure layer flag" into sc-dev am: ec5e4e5727

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13429545

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3858932da37157d77e4ba0481894d48c13840a4c
This commit is contained in:
TreeHugger Robot
2021-01-29 18:29:10 +00:00
committed by Automerger Merge Worker

View File

@@ -414,6 +414,15 @@ public final class SurfaceControl implements Parcelable {
*/ */
public static final int SECURE = 0x00000080; 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 * Surface creation flag: Creates a surface where color components are interpreted
* as "non pre-multiplied" by their alpha channel. Of course this flag is * as "non pre-multiplied" by their alpha channel. Of course this flag is