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-08 13:35:44 -0700 |
commit | fba69b56ea4522483aa0df21342362b219a146dd (patch) | |
tree | 613055bfed2404c46f2f5ffe17b3dd8f60d6d988 /gralloc | |
parent | 06695a61ba0c5148972108a03c094ae85531cf1c (diff) | |
download | hikey-fba69b56ea4522483aa0df21342362b219a146dd.tar.gz |
gralloc: make register framebuffer no-op
Bug: 37550237
Test: boots
Change-Id: Iccc7a5dd5bb9deb980783ccc15ad8f50243c21b4
Diffstat (limited to 'gralloc')
-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) { |