Fix race between SetVisible and CreateOutputSurface
commitc55997002f669bdb157dc1bfa7c06a4f87b67df3
authorenne <enne@chromium.org>
Tue, 16 Dec 2014 20:49:20 +0000 (16 12:49 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Dec 2014 20:49:53 +0000 (16 20:49 +0000)
treef351dd7e06bd9bdeb4c86d5d639a9accc6e430e9
parent1031ed68dac91dfbd4752e36f07865df55621a3f
Fix race between SetVisible and CreateOutputSurface

If SetVisible(false) happens before a posted CreateOutputSurface, then
it can end up deferencing a null LayerTreeHost.  An early out avoids
this.

R=sievers@chromium.org
BUG=442359

Review URL: https://codereview.chromium.org/806053004

Cr-Commit-Position: refs/heads/master@{#308662}
content/browser/renderer_host/compositor_impl_android.cc