OSDN Git Service

add support for gralloc1 mapper
authorJaesung Chung <jaesung@google.com>
Thu, 22 Jun 2017 11:02:09 +0000 (20:02 +0900)
committerJaesung Chung <jaesung@google.com>
Thu, 22 Jun 2017 15:19:25 +0000 (15:19 +0000)
commitfccddfe6725a1887967a279381567cc40678e888
tree629640d98b2b46e75e27b89c2669e36a549b983b
parent0e71ea71ed0b411a98039dfd888c4e8ffd45d5b7
add support for gralloc1 mapper

Since N MR1, gralloc1 is newly arrived. In order to use gralloc1, the
caller should retrieve its functions via the getFunction method.
GrallocModule now supports for the gralloc0 and gralloc1 mappers both.
Also it makes FrameBufferAndroid to use common GrallocAndroid
implementation.

Bug b/62897956
Test: no errors on locking and unlocking via gralloc1
Change-Id: I1dbb5acd9a36775c642e0282b9b5017ebcec99ec
Reviewed-on: https://swiftshader-review.googlesource.com/10248
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Jaesung Chung <jaesung@google.com>
src/Android.mk
src/Common/GrallocAndroid.cpp
src/Common/GrallocAndroid.hpp
src/Main/FrameBufferAndroid.cpp
src/Main/FrameBufferAndroid.hpp
src/OpenGL/libEGL/Android.mk
src/OpenGL/libGLES_CM/Android.mk
src/OpenGL/libGLESv2/Android.mk