Merge "hwc: Refactor of allowing virtual displays to HWC"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
1f27f3fb3c
@@ -155,7 +155,7 @@ void initContext(hwc_context_t *ctx)
|
||||
MDPComp::getObject(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres,
|
||||
rightSplit, HWC_DISPLAY_PRIMARY);
|
||||
|
||||
for (uint32_t i = 0; i < MAX_DISPLAYS; i++) {
|
||||
for (uint32_t i = 0; i < HWC_NUM_DISPLAY_TYPES; i++) {
|
||||
ctx->mHwcDebug[i] = new HwcDebug(i);
|
||||
ctx->mLayerRotMap[i] = new LayerRotMap();
|
||||
}
|
||||
@@ -199,7 +199,7 @@ void closeContext(hwc_context_t *ctx)
|
||||
ctx->mRotMgr = NULL;
|
||||
}
|
||||
|
||||
for(int i = 0; i < MAX_DISPLAYS; i++) {
|
||||
for(int i = 0; i < HWC_NUM_DISPLAY_TYPES; i++) {
|
||||
if(ctx->mCopyBit[i]) {
|
||||
delete ctx->mCopyBit[i];
|
||||
ctx->mCopyBit[i] = NULL;
|
||||
@@ -216,7 +216,7 @@ void closeContext(hwc_context_t *ctx)
|
||||
ctx->mExtDisplay = NULL;
|
||||
}
|
||||
|
||||
for(int i = 0; i < MAX_DISPLAYS; i++) {
|
||||
for(int i = 0; i < HWC_NUM_DISPLAY_TYPES; i++) {
|
||||
if(ctx->mFBUpdate[i]) {
|
||||
delete ctx->mFBUpdate[i];
|
||||
ctx->mFBUpdate[i] = NULL;
|
||||
|
||||
Reference in New Issue
Block a user