Commit 4ed9d349 by Valerie Hau Committed by Nicolas Capens

Modify gralloc0 implementation

Add validateBufferSize and getTransportSize Bug: b/131089111 Test: build, boot Change-Id: Ie5ce20010c8a00eebde239d149faa1fb0fc07195 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50074Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarJason Macnak <natsu@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent e8b6cf63
...@@ -42,5 +42,8 @@ struct gralloc_module_t { ...@@ -42,5 +42,8 @@ struct gralloc_module_t {
int (*unlockAsync)(gralloc_module_t const*, buffer_handle_t, int*); 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, int (*lockAsync_ycbcr)(gralloc_module_t const*, buffer_handle_t, int, int, int, int, int,
android_ycbcr*, 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];
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment