Revert "Set priority among various display devices"

* This reverts commit 52b4fdbdbd.

* Since DisplayDevices are not created for non-wfd virtual
displays(CTS/SR/SSD) anymore, we can remove these checks.

Change-Id: I9249a70c6d6f6b42f268e6ec8a28c0a86b954c4e
This commit is contained in:
Raj Kamal
2014-07-03 17:33:54 +05:30
committed by Gerrit - the friendly Code Review server
parent 7c9014b83f
commit 5ef25b84f0
3 changed files with 2 additions and 32 deletions

View File

@@ -2058,32 +2058,6 @@ bool isAbcInUse(hwc_context_t *ctx){
return (ctx->enableABC && ctx->listStats[0].renderBufIndexforABC == 0);
}
/* Since we fake non-Hybrid WFD solution as external display, this
* function helps us in determining the priority between external
* (hdmi/non-Hybrid WFD display) and virtual display devices(SSD/
* screenrecord). This can be removed once wfd-client migrates to
* using virtual-display api's.
*/
bool canUseMDPforVirtualDisplay(hwc_context_t* ctx,
const hwc_display_contents_1_t *list) {
/* We rely on the fact that for pure virtual display solution
* list->outbuf will be a non-NULL handle.
*
* If there are three active displays (which means there is one
* primary, one external and one virtual active display)
* we give mdss/mdp hw resources(pipes,smp,etc) for external
* display(hdmi/non-Hybrid WFD display) rather than for virtual
* display(SSD/screenrecord)
*/
if(list->outbuf and (ctx->numActiveDisplays == HWC_NUM_DISPLAY_TYPES)) {
return false;
}
return true;
}
void dumpBuffer(private_handle_t *ohnd, char *bufferName) {
if (ohnd != NULL && ohnd->base) {
char dumpFilename[PATH_MAX];