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:
Naseer Ahmed
2012-07-01 23:54:19 -07:00
committed by Brian Muramatsu
parent 30621ab602
commit a87da60090
20 changed files with 198 additions and 69 deletions

View File

@@ -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;