summaryrefslogtreecommitdiff
path: root/include/android
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2021-03-29 22:48:50 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-03-29 22:48:50 +0000
commit69c0121d26a76405ba57449b10c7e4520e965c5f (patch)
treeaf1a097c124ce8dff6d1f40dc54c116458c4ccc1 /include/android
parentce9e187a07547ddcb8e467a10f3549544bb65e1a (diff)
parent38605fc3825897338fc284bbb79ee7557f3a6f07 (diff)
Merge "Clarify that the buffer passed to ASurfaceTransaction_setBuffer needs to have AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE." into sc-dev
Diffstat (limited to 'include/android')
-rw-r--r--include/android/surface_control.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/android/surface_control.h b/include/android/surface_control.h
index eb9c5280e2..91726cd737 100644
--- a/include/android/surface_control.h
+++ b/include/android/surface_control.h
@@ -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,