OSDN Git Service

Fix reading NULL Surfaces from Parcels
authorJesse Hall <jessehall@google.com>
Sun, 3 Mar 2013 00:25:32 +0000 (16:25 -0800)
committerJesse Hall <jessehall@google.com>
Sun, 3 Mar 2013 04:06:42 +0000 (20:06 -0800)
commit006a601f22b275bcabf608f630b321df027d56d1
treeccea1e25e075bf41df20f01ec080e30b1a49236a
parentbbb57f3331c7182399ed82e9c4f93a965677dde3
Fix reading NULL Surfaces from Parcels

Writing a NULL Surface was being read as a non-NULL Surface with NULL
mGraphicBufferProducer. Before the SurfaceTextureClient -> Surface
refactoring, you'd get a NULL Surface, and some code relies on that.

Bug: 8291161
Change-Id: I477bfe8882693e53a5f604a3d2c9e3cfe24473b4
libs/gui/Surface.cpp