gralloc: Allow system heap to be uncached.
Remove an old check that prevented this from happening. Change-Id: I938b11b27e58fc38a679dc55e31e7b51eb86bd3a
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
b9ebe5ad90
commit
a6ad22dbd5
@@ -75,9 +75,6 @@ static bool canFallback(int usage, bool triedSystem)
|
|||||||
|
|
||||||
static bool useUncached(int usage)
|
static bool useUncached(int usage)
|
||||||
{
|
{
|
||||||
// System heaps cannot be uncached
|
|
||||||
if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP)
|
|
||||||
return false;
|
|
||||||
if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED)
|
if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user