diff options
| author | 2021-03-29 22:48:50 +0000 | |
|---|---|---|
| committer | 2021-03-29 22:48:50 +0000 | |
| commit | 69c0121d26a76405ba57449b10c7e4520e965c5f (patch) | |
| tree | af1a097c124ce8dff6d1f40dc54c116458c4ccc1 /include/android | |
| parent | ce9e187a07547ddcb8e467a10f3549544bb65e1a (diff) | |
| parent | 38605fc3825897338fc284bbb79ee7557f3a6f07 (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.h | 3 |
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, |