commit | 24de83be34acc53d72b0a39c177363806dd2395a | [log] [tgz] |
---|---|---|
author | Brian Lindahl <blindahl@google.com> | Sun Dec 18 11:20:12 2022 -0700 |
committer | Brian Lindahl <blindahl@google.com> | Mon Dec 19 15:02:05 2022 -0700 |
tree | c65f81917d1316ad40cef0b599d194fb4c90abcb | |
parent | 0b68727775105e755e86e2fa742647e167e638c5 [diff] |
Add to AIDL field to LayerCommand to clear buffer slots Bug: 262041682 Bug: 258196272 Test: presubmit Change-Id: Ib1819ccc2b53036b8d47cfd4d3d87d6ec07af7c5
diff --git a/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/LayerCommand.aidl b/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/LayerCommand.aidl index 0c5fac9..6d32218 100644 --- a/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/LayerCommand.aidl +++ b/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/LayerCommand.aidl
@@ -54,4 +54,5 @@ @nullable android.hardware.graphics.composer3.PerFrameMetadata[] perFrameMetadata; @nullable android.hardware.graphics.composer3.PerFrameMetadataBlob[] perFrameMetadataBlob; @nullable android.hardware.graphics.common.Rect[] blockingRegion; + @nullable int[] bufferSlotsToClear; }
diff --git a/graphics/composer/aidl/android/hardware/graphics/composer3/LayerCommand.aidl b/graphics/composer/aidl/android/hardware/graphics/composer3/LayerCommand.aidl index f3b67a9..fd50be9 100644 --- a/graphics/composer/aidl/android/hardware/graphics/composer3/LayerCommand.aidl +++ b/graphics/composer/aidl/android/hardware/graphics/composer3/LayerCommand.aidl
@@ -258,4 +258,11 @@ * the screen. */ @nullable Rect[] blockingRegion; + + /** + * Specifies which buffer slots should be cleared of buffer references + * because these buffers will no longer be used and the memory should + * be freed. + */ + @nullable int[] bufferSlotsToClear; }