OSDN Git Service

REVERTME: Disable idle composition for now.
authorKalyan Kondapally <kalyan.kondapally@intel.com>
Tue, 30 May 2017 05:29:16 +0000 (22:29 -0700)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Sun, 4 Jun 2017 09:06:25 +0000 (02:06 -0700)
This patch disables composition to fall back to single plane when
system is idle instead of using multiple planes. We want to eventually
enable this but this is causing flicker and background disappears
which need to be investigated. However, with the changes we are able
to get rid of an extra thread and hence we can merge the remaining
bits now while fixing the remaining issues.

Jira: None.
Test: No regressions on Linux and Android.

Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
common/display/displayqueue.cpp

index 17e5d65..54f9f5b 100644 (file)
@@ -693,6 +693,7 @@ void DisplayQueue::HandleIdleCase() {
   }
 
   idle_tracker_.idle_frames_++;
+#if 0
   DisplayPlaneStateList current_composition_planes;
   bool render_layers;
   std::tie(render_layers, current_composition_planes) =
@@ -746,6 +747,7 @@ void DisplayQueue::HandleIdleCase() {
   }
 
   display_plane_manager_->ReleaseFreeOffScreenTargets();
+#endif
   idle_tracker_.idle_lock_.unlock();
 }