OSDN Git Service

Clean up HWC state when releasing a DisplayDevice
authorJesse Hall <jessehall@google.com>
Mon, 25 Mar 2013 21:43:23 +0000 (14:43 -0700)
committerJesse Hall <jessehall@google.com>
Wed, 27 Mar 2013 21:58:09 +0000 (14:58 -0700)
commit02d86567d95b99e1142941ed7ec23a4465822813
tree70c664e137836fb8bbf22391fa2787d8c44a9393
parent5a557a61d6a5cd2d82dcd961b1d72b5621eb014d
Clean up HWC state when releasing a DisplayDevice

DisplayDevices can be released when DisplayManager removes them from
the display list, or (for virtual displays) when the surface is set to
NULL. We were only cleaning up HWC resources associated with the
display in the first case.

Bug: 8384764
Change-Id: Id3d226dd7178fbe6d0a2ac4e2660b864ee073de3
services/surfaceflinger/DisplayDevice.cpp
services/surfaceflinger/DisplayDevice.h
services/surfaceflinger/DisplayHardware/HWComposer.cpp
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h