gralloc1: Do not map buffer in retain
Change-Id: I31319a763b21f7460a3f4e22c3fa69f34018e319
diff --git a/libgralloc1/gr_buf_mgr.cpp b/libgralloc1/gr_buf_mgr.cpp
index 2c24001..9b6586c 100644
--- a/libgralloc1/gr_buf_mgr.cpp
+++ b/libgralloc1/gr_buf_mgr.cpp
@@ -272,13 +272,6 @@
} else {
private_handle_t *handle = const_cast<private_handle_t *>(hnd);
err = ImportHandleLocked(handle);
- if (err == GRALLOC1_ERROR_NONE) {
- // TODO(user): See bug 35955598
- if (hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER) {
- return GRALLOC1_ERROR_NONE; // Don't map secure buffer
- }
- err = MapBuffer(hnd);
- }
}
return err;
}