OSDN Git Service

SF: Allow present if sideband stream changed
authorDan Stoza <stoza@google.com>
Wed, 29 Jul 2015 23:15:50 +0000 (16:15 -0700)
committerDan Stoza <stoza@google.com>
Wed, 29 Jul 2015 23:15:50 +0000 (16:15 -0700)
Allows the sideband layer to be passed all the way to HWC instead of
getting blocked by the updated PTS tracking code.

Bug: 22291067
Change-Id: Ic2f20a7528e276fff054e86ca35789c26873b348

services/surfaceflinger/Layer.cpp

index e2418cc..5ff79a9 100644 (file)
@@ -1101,6 +1101,10 @@ void Layer::useEmptyDamage() {
 // ----------------------------------------------------------------------------
 
 bool Layer::shouldPresentNow(const DispSync& dispSync) const {
+    if (mSidebandStreamChanged) {
+        return true;
+    }
+
     Mutex::Autolock lock(mQueueItemLock);
     if (mQueueItems.empty()) {
         return false;