hwc: Set external display indicator on RESUME event
Treat RESUME event as ONLINE event. On Resume event, set
external display indicator. This will ensure that GPU
will be used for Primary composition there by freeing
remaining pipes ensuring that External will be assured
of pipe allocation.
Change-Id: I53471f4f828811ed8645cf8b08beaab7b46d181d
diff --git a/libhwcomposer/hwc_uevents.cpp b/libhwcomposer/hwc_uevents.cpp
index b314317..1751cba 100644
--- a/libhwcomposer/hwc_uevents.cpp
+++ b/libhwcomposer/hwc_uevents.cpp
@@ -202,9 +202,6 @@
case EXTERNAL_PAUSE:
{ // pause case
ALOGD("%s Received Pause event",__FUNCTION__);
- // This is required to ensure that composition
- // fall back to FB, closing all MDP pipes.
- ctx->mExtDispConfiguring = true;
ctx->dpyAttr[dpy].isActive = true;
ctx->dpyAttr[dpy].isPause = true;
break;
@@ -212,6 +209,8 @@
case EXTERNAL_RESUME:
{ // resume case
ALOGD("%s Received resume event",__FUNCTION__);
+ // treat Resume as Online event
+ ctx->mExtDispConfiguring = true;
ctx->dpyAttr[dpy].isActive = true;
ctx->dpyAttr[dpy].isPause = false;
break;