OSDN Git Service

Change ConsumerBase's FrameAvailableListener to be a weak pointer
authorIgor Murashkin <iam@google.com>
Mon, 29 Oct 2012 20:36:11 +0000 (13:36 -0700)
committerIgor Murashkin <iam@google.com>
Mon, 5 Nov 2012 21:39:02 +0000 (13:39 -0800)
commita4a3149a36bc69a06e4824aeae909ab910661070
tree9c6cd56ec3362090892d69b0fc4e0d1b31c2f98f
parent3bc7b2757125b511377ed918f83f5918d382c514
Change ConsumerBase's FrameAvailableListener to be a weak pointer

This prevents strong reference cycles when the listener implementation also
holds a strong pointer to the ConsumerBase

Bug: 7425644
Change-Id: I1514b13a32b18d421c902dddebec0765a989c55c
include/gui/ConsumerBase.h
include/gui/SurfaceTexture.h
libs/gui/ConsumerBase.cpp
services/surfaceflinger/Layer.cpp
services/surfaceflinger/Layer.h
services/surfaceflinger/LayerBase.h