OSDN Git Service

sometimes SF would not process a surface resize
authorMathias Agopian <mathias@google.com>
Tue, 5 Jun 2012 01:16:30 +0000 (18:16 -0700)
committerMathias Agopian <mathias@google.com>
Tue, 5 Jun 2012 01:16:30 +0000 (18:16 -0700)
commit4824d40a35333182c2eb3593511b9bcbecd0a943
treebacce997be8123bdca8c49da0812d99f67e1af5c
parent4467bba73a91161da01d5d969cf7ba3e2309d989
sometimes SF would not process a surface resize

this would happen when a window started with size A, was
resized to B and immediately resized to A. In this situation
the erquested and active size would be the same, and SF
would think a transaction wasn't needed.

we fix this by always comparing the requested sizes.

Also, make sure to set mRefreshPending once we're sure
we have succesfully called updateTexImage().

Bug: 6580962
Change-Id: I2c48b4df7f05fd35c9e1d2dd82095b0f3d5a0b6a
services/surfaceflinger/Layer.cpp