diff options
author | Chia-I Wu <olv@google.com> | 2017-05-08 13:10:08 -0700 |
---|---|---|
committer | Chia-I Wu <olv@google.com> | 2017-05-24 08:57:00 -0700 |
commit | b9bdb01b92ff044d6bd54d9cb5c5917dd40f99b0 (patch) | |
tree | d17cb8d4efa25a12a763c00dba3e55ab402912fe | |
parent | 5384c73453500a3f4c83cc7415269be17a4e6669 (diff) | |
download | hikey-b9bdb01b92ff044d6bd54d9cb5c5917dd40f99b0.tar.gz |
gralloc: make register framebuffer no-op
Bug: 37550237
Test: boots
Change-Id: Iccc7a5dd5bb9deb980783ccc15ad8f50243c21b4
-rw-r--r-- | gralloc/gralloc_module.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gralloc/gralloc_module.cpp b/gralloc/gralloc_module.cpp index cdcbc5b9..70d2c69b 100644 --- a/gralloc/gralloc_module.cpp +++ b/gralloc/gralloc_module.cpp @@ -96,7 +96,9 @@ static int gralloc_register_buffer(gralloc_module_t const *module, buffer_handle if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { - AERR("Can't register buffer 0x%p as it is a framebuffer", handle); + AINF("Register framebuffer 0x%p is no-op", handle); + retval = 0; + } else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) { |