hwc: Refactor of allowing virtual displays to HWC
1. Since SF doesnt invoke blank for virtual display,
handle pipe clean up as part of Primary display
blank.
2. Support virtual display to query display attributes.
This refactor is done to address Framework reboot issue.
Change-Id: I266a87228193fd85252a22242b66dd4af5f3033f
This commit is contained in:
@@ -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