aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorRoman Stratiienko <r.stratiienko@gmail.com>2020-10-23 22:28:38 +0300
committerRoman Stratiienko <r.stratiienko@gmail.com>2020-10-31 19:08:19 +0200
commitadd24cb745a35c4c80d1c49e8a6da5475136b051 (patch)
treedd8c23e2442e1f914788f494cc36d22c6ffe76e6 /Android.bp
parent33365c2b89e2ea1fd5f319c027b7edd133509830 (diff)
downloaddrm_hwcomposer-add24cb745a35c4c80d1c49e8a6da5475136b051.tar.gz
drm_hwcomposer: stop using pixel_stride
pixel_stride is used only to validate buffer when importing using GraphicBufferMapper::importBuffer() method. The problem is we can't always get this value from buffer_handle_t. Libdrm and MapperMetadata getters can only calculate this value based on byte stride and buffer format. But this calculation isn't always possible, which causes importBuffer() to fail. Instead we can use GrallocMapper::importBuffer() method, which doesn't require to validate the buffer. This commit is not compatible with Android-P. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 170bd31..20b22ce 100644
--- a/Android.bp
+++ b/Android.bp
@@ -44,6 +44,7 @@ cc_defaults {
"libcutils",
"libdrm",
"libhardware",
+ "libhidlbase",
"liblog",
"libsync",
"libui",