Clear render surface when we early out in CalcDrawPropsInternal
commita9aa60a832ece818daf5adf3f0edb805f2d0dfe6
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 29 Aug 2013 04:28:26 +0000 (29 04:28 +0000)
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 29 Aug 2013 04:28:26 +0000 (29 04:28 +0000)
treeb4849512f4cc4d7ace271825f410f16290beddc3
parentc84acc8c59784d5413a9b7196c3757569aedea9e
Clear render surface when we early out in CalcDrawPropsInternal

If we don't clear the layer's render surface when we early out, we'll build the
render surface layer list incorrectly, and the layer iterator will crash trying
to iterate over it. I've done this at the first early out, but I missed this
at the second.

R=danakj@chromium.org
BUG=280613

Review URL: https://chromiumcodereview.appspot.com/23708003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220194 0039d316-1c4b-4281-b951-d872f2087c98
cc/trees/layer_tree_host_common.cc
cc/trees/layer_tree_host_common_unittest.cc