| Index: cc/trees/single_thread_proxy.cc
|
| diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
|
| index dd9e16a81cffaf7d1ee13784cf4182dfbb3b6438..2c50f1cf4a83d38ec1d02435a2d0d69060108beb 100644
|
| --- a/cc/trees/single_thread_proxy.cc
|
| +++ b/cc/trees/single_thread_proxy.cc
|
| @@ -88,6 +88,7 @@ void SingleThreadProxy::CreateAndInitializeOutputSurface() {
|
| TRACE_EVENT0(
|
| "cc", "SingleThreadProxy::CreateAndInitializeOutputSurface");
|
| DCHECK(Proxy::IsMainThread());
|
| + DCHECK(layer_tree_host_->output_surface_lost());
|
|
|
| scoped_ptr<OutputSurface> output_surface =
|
| layer_tree_host_->CreateOutputSurface();
|
| @@ -339,9 +340,7 @@ void SingleThreadProxy::DidSwapBuffersCompleteOnImplThread() {
|
| void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) {
|
| TRACE_EVENT0("cc", "SingleThreadProxy::CompositeImmediately");
|
| DCHECK(Proxy::IsMainThread());
|
| -
|
| - if (!layer_tree_host_->InitializeOutputSurfaceIfNeeded())
|
| - return;
|
| + DCHECK(!layer_tree_host_->output_surface_lost());
|
|
|
| layer_tree_host_->AnimateLayers(frame_begin_time);
|
|
|
|
|