diff options
author | Valerie Hau <vhau@google.com> | 2019-04-24 16:43:47 -0700 |
---|---|---|
committer | Valerie Hau <vhau@google.com> | 2019-04-24 16:43:47 -0700 |
commit | 22376f5794dc3848c58f97110b9b2757661dec8a (patch) | |
tree | 9eeda5851e70620197ab8e3110ce44b94f2b5f19 | |
parent | ed423c29cde942f291e387f4bcb78492ad05e501 (diff) | |
download | swiftshader-android10-d4-s1-release.tar.gz |
Modify gralloc0 implementationandroid-mainline-10.0.0_r9android-mainline-10.0.0_r7android-mainline-10.0.0_r5android-mainline-10.0.0_r4android-mainline-10.0.0_r10android-10.0.0_r9android-10.0.0_r8android-10.0.0_r7android-10.0.0_r45android-10.0.0_r44android-10.0.0_r43android-10.0.0_r42android-10.0.0_r41android-10.0.0_r40android-10.0.0_r39android-10.0.0_r38android-10.0.0_r37android-10.0.0_r36android-10.0.0_r35android-10.0.0_r34android-10.0.0_r33android-10.0.0_r32android-10.0.0_r31android-10.0.0_r30android-10.0.0_r14android-10.0.0_r13android-10.0.0_r12android10-qpr3-s1-releaseandroid10-qpr3-releaseandroid10-qpr2-s4-releaseandroid10-qpr2-s3-releaseandroid10-qpr2-s2-releaseandroid10-qpr2-s1-releaseandroid10-qpr2-releaseandroid10-qpr1-mainline-releaseandroid10-mainline-media-releaseandroid10-devandroid10-d4-s1-releaseandroid10-d4-releaseandroid10-c2f2-s2-releaseandroid10-c2f2-s1-releaseandroid10-c2f2-release
Add validateBufferSize and getTransportSize
Bug: 131089111
Test: build, boot
Change-Id: Ie5ce20010c8a00eebde239d149faa1fb0fc07195
-rw-r--r-- | include/Android/hardware/gralloc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/Android/hardware/gralloc.h b/include/Android/hardware/gralloc.h index 8446ba4ea..013e86a31 100644 --- a/include/Android/hardware/gralloc.h +++ b/include/Android/hardware/gralloc.h @@ -42,5 +42,8 @@ struct gralloc_module_t { int (*unlockAsync)(gralloc_module_t const*, buffer_handle_t, int*); int (*lockAsync_ycbcr)(gralloc_module_t const*, buffer_handle_t, int, int, int, int, int, android_ycbcr*, int); - void* reserved_proc[3]; + int32_t (*getTransportSize)(gralloc_module_t const*, buffer_handle_t, uint32_t, uint32_t); + int32_t (*validateBufferSize)(gralloc_module_t const*, buffer_handle_t, uint32_t, uint32_t, int32_t, int, uint32_t); + + void* reserved_proc[1]; }; |