aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValerie Hau <vhau@google.com>2019-04-24 16:43:47 -0700
committerValerie Hau <vhau@google.com>2019-04-24 16:43:47 -0700
commit22376f5794dc3848c58f97110b9b2757661dec8a (patch)
tree9eeda5851e70620197ab8e3110ce44b94f2b5f19
parented423c29cde942f291e387f4bcb78492ad05e501 (diff)
downloadswiftshader-android10-d4-s1-release.tar.gz
Add validateBufferSize and getTransportSize Bug: 131089111 Test: build, boot Change-Id: Ie5ce20010c8a00eebde239d149faa1fb0fc07195
-rw-r--r--include/Android/hardware/gralloc.h5
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];
};