Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e60a610b authored by Ady Abraham's avatar Ady Abraham Committed by Automerger Merge Worker
Browse files

Merge "Clarify that the buffer passed to ASurfaceTransaction_setBuffer needs...

Merge "Clarify that the buffer passed to ASurfaceTransaction_setBuffer needs to have AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE." into sc-dev am: 69c0121d

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

Change-Id: I3899b83317783061b18cf3618f0f2e33618ce5fd
parents 8c269f47 69c0121d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -286,6 +286,9 @@ void ASurfaceTransaction_setZOrder(ASurfaceTransaction* transaction,
 * The frameworks takes ownership of the \a acquire_fence_fd passed and is responsible
 * The frameworks takes ownership of the \a acquire_fence_fd passed and is responsible
 * for closing it.
 * for closing it.
 *
 *
 * Note that the buffer must be allocated with AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE
 * as the surface control might be composited using the GPU.
 *
 * Available since API level 29.
 * Available since API level 29.
 */
 */
void ASurfaceTransaction_setBuffer(ASurfaceTransaction* transaction,
void ASurfaceTransaction_setBuffer(ASurfaceTransaction* transaction,