OSDN Git Service

improve resize transactions
authorMathias Agopian <mathias@google.com>
Wed, 23 May 2012 21:35:49 +0000 (14:35 -0700)
committerMathias Agopian <mathias@google.com>
Thu, 24 May 2012 01:01:24 +0000 (18:01 -0700)
commit05cec9d1275fd939c2d1aec235dca2bdb8edef63
tree8e444d605f3f8f8ef0ed1d4297045410d45e1367
parent419e196e639c8adb875da2765abcef95017b6d4a
improve resize transactions

use a flag instead of pre-committing the "requested" state
to prevent propagation or "requested" to "active", which makes
things a lot clearer when reading the code.

also avoid going through the "resized" code-path when requested
size is equal to "active" size.

Bug: 6498869
Change-Id: I24f893ba0ec5ca06aac5b8da9818989ae7ce4005
services/surfaceflinger/Layer.cpp
services/surfaceflinger/LayerBase.cpp
services/surfaceflinger/LayerBase.h