OSDN Git Service

Fix rotation displays frame N-1 briefly while rotating
authorMathias Agopian <mathias@google.com>
Tue, 1 Nov 2011 21:39:06 +0000 (14:39 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 4 Nov 2011 22:15:32 +0000 (15:15 -0700)
commit4a9ac37fe26644bb5253d15eec08be2edb896642
tree422d3aab1501234ff83d48bf1405310ea497fcef
parentd9440fe16641c73265d46f1f23d74cdc6d21a408
Fix rotation displays frame N-1 briefly while rotating

The ScreenShot layer is now created hidden. The screenshot itself
is aquired during the transaction when the layer is made visible.
This guarantees the screenshot and the layer happen atomically
with respect to screen updates.

Bug: 5534521
Change-Id: Ida23e1f13d5716ec83b78a15712e0646d6cf8729
services/surfaceflinger/LayerScreenshot.cpp
services/surfaceflinger/LayerScreenshot.h
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h