libgralloc: Clearing PRIV_FLAGS_NOT_MAPPED.
- clearing PRIV_FLAGS_NOT_MAPPED if GRALLOC_USAGE_PRIVATE_DO_NOT_MAP flag is not set so mmap can be skipped. Crs-fixed:342782 Change-Id: I01de82dedf08c8c41db179789cc3a9927aa7e221 (cherry picked from commit 67215121cdff9df78d6a80cda442a6bfc7aa27b3)
This commit is contained in:
parent
4b0638777a
commit
873b6a9a79
@ -141,7 +141,8 @@ int IonController::allocate(alloc_data& data, int usage,
|
||||
|
||||
if(usage & GRALLOC_USAGE_PRIVATE_DO_NOT_MAP)
|
||||
data.allocType = private_handle_t::PRIV_FLAGS_NOT_MAPPED;
|
||||
|
||||
else
|
||||
data.allocType &= ~(private_handle_t::PRIV_FLAGS_NOT_MAPPED);
|
||||
// if no flags are set, default to
|
||||
// EBI heap, so that bypass can work
|
||||
// we can fall back to system heap if
|
||||
|
Loading…
Reference in New Issue
Block a user