OSDN Git Service

latch transparent region hint only when we get a new frame
authorMathias Agopian <mathias@google.com>
Wed, 3 Apr 2013 01:30:32 +0000 (18:30 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 3 Apr 2013 01:30:32 +0000 (18:30 -0700)
commit2ca79399b933935eb1b6c0ec1f746f8c4475369c
tree3fbffc3056ceac9214aa8bfeed8cce8f6d9446bc
parent128fcea1c6f8b5f66a5d88a80789e65aac798416
latch transparent region hint only when we get a new frame

since the transparent region hint really depends on the
content of the window containing the SurfaceView
(it's calculated by the view hierarchy based on
overlapping views), it makes sense to latch it only when
the content of the window (the app) changes.

This should help fixing drawing artifacts when changing the
layout of a window containing a SurfaceView.

Bug: 8511430
Change-Id: Ic3aa668495293cb4d82a2cd7dcf3b6a337287678
include/ui/Region.h
libs/ui/Region.cpp
services/surfaceflinger/Layer.cpp
services/surfaceflinger/Layer.h
services/surfaceflinger/SurfaceFlinger.cpp