display: Add QC Display utils
* Rename qcomui directory to qdutils * Avoid inclusion of qcom_ui header * Add class to get MDP version * Add namespace for qdutils to prevent collison Change-Id: I9a3f440e6b0fea1cfcc478ddca90af5df3bbb897
This commit is contained in:
committed by
Brian Muramatsu
parent
30621ab602
commit
a87da60090
@@ -37,9 +37,10 @@
|
||||
#include "pmemalloc.h"
|
||||
#include "ashmemalloc.h"
|
||||
#include "gr.h"
|
||||
#include "qcomutils/comptype.h"
|
||||
#include "comptype.h"
|
||||
|
||||
using namespace gralloc;
|
||||
using namespace qdutils;
|
||||
using android::sp;
|
||||
|
||||
const int GRALLOC_HEAP_MASK = GRALLOC_USAGE_PRIVATE_ADSP_HEAP |
|
||||
@@ -62,7 +63,8 @@ static bool canFallback(int usage, bool triedSystem)
|
||||
// 4. The heap type is protected
|
||||
// 5. The buffer is meant for external display only
|
||||
|
||||
if(QCCompositionType::getInstance().getCompositionType() & COMPOSITION_TYPE_MDP)
|
||||
if(QCCompositionType::getInstance().getCompositionType() &
|
||||
COMPOSITION_TYPE_MDP)
|
||||
return false;
|
||||
if(triedSystem)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user