From b9bdb01b92ff044d6bd54d9cb5c5917dd40f99b0 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 8 May 2017 13:10:08 -0700 Subject: gralloc: make register framebuffer no-op Bug: 37550237 Test: boots Change-Id: Iccc7a5dd5bb9deb980783ccc15ad8f50243c21b4 --- gralloc/gralloc_module.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3