diff options
| author | 2014-11-19 16:33:47 -0800 | |
|---|---|---|
| committer | 2014-11-20 07:38:00 -0800 | |
| commit | b13de07f0b26953115f4315bc7417ca87c70594b (patch) | |
| tree | 616090c7a28c41ac65b802e3e63c7283aa3fbfe5 /libs/hwui/TextureCache.cpp | |
| parent | 04b6a6d3a17e40599d90ccabc6a8481a62dd2ae1 (diff) | |
If the surface is lost, release it
Bug: 18403246
Surface#isValid() is used throughout ViewRootImpl to
determine Surface validity. However, this will return true
until Surface#release() is called, even if the underlying
BufferQueue is abandoned. We have a very strong signal
from EGL that the Surface is now dead, so use that signal
to call Surface#release() so ViewRootImpl's isValid() usage
will be valid.
Change-Id: Ib355560ef4ca7625c3c784174863d2d55267d93d
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
0 files changed, 0 insertions, 0 deletions