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

Commit 38605fc3 authored by Ady Abraham's avatar Ady Abraham
Browse files

Clarify that the buffer passed to ASurfaceTransaction_setBuffer

needs to have AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE.

Test: N/A
Bug: 183950013

Change-Id: I35de7fba1a15ec8fd96277d946c985b5a5876169
parent 9b84761b
Loading
Loading
Loading
Loading
+3 −0
Original line number 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
 * 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.
 */
void ASurfaceTransaction_setBuffer(ASurfaceTransaction* transaction,