OSDN Git Service

SF: Also edit currentState in doTransaction
authorPablo Ceballos <pceballos@google.com>
Fri, 3 Jun 2016 00:46:05 +0000 (17:46 -0700)
committerPablo Ceballos <pceballos@google.com>
Sat, 4 Jun 2016 02:35:16 +0000 (19:35 -0700)
Bug 28899837

Change-Id: I46c8301549c627c5d1c7efa661055aba787a33d6

services/surfaceflinger/Layer.cpp

index dffc542..b5d3262 100644 (file)
@@ -1442,6 +1442,8 @@ uint32_t Layer::doTransaction(uint32_t flags) {
     // this is used by Layer, which special cases resizes.
     if (flags & eDontUpdateGeometryState)  {
     } else {
+        Layer::State& editCurrentState(getCurrentState());
+        editCurrentState.active = editCurrentState.requested;
         c.active = c.requested;
     }