gralloc: make register framebuffer no-op
Bug: 37550237
Test: boots
Change-Id: Iccc7a5dd5bb9deb980783ccc15ad8f50243c21b4
diff --git a/gralloc/gralloc_module.cpp b/gralloc/gralloc_module.cpp
index cdcbc5b..70d2c69 100644
--- a/gralloc/gralloc_module.cpp
+++ b/gralloc/gralloc_module.cpp
@@ -96,7 +96,9 @@
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)
{