Index: sky/compositor/layer_host.cc |
diff --git a/sky/compositor/layer_host.cc b/sky/compositor/layer_host.cc |
index 1739c78e41baeccd1feb408bc67206320aaebc1a..d8ca387d14221320dee141676f9ec7cfabd25951 100644 |
--- a/sky/compositor/layer_host.cc |
+++ b/sky/compositor/layer_host.cc |
@@ -16,7 +16,7 @@ namespace sky { |
LayerHost::LayerHost(LayerHostClient* client) |
: client_(client), |
- state_(kWaitingForSurfaceService), |
+ state_(kReadyForFrame), |
frame_requested_(false), |
surface_holder_(this, client->GetShell()), |
gl_context_owner_(client->GetShell()), |
@@ -46,13 +46,6 @@ void LayerHost::GetPixelsForTesting(std::vector<unsigned char>* pixels) { |
return root_layer_->GetPixelsForTesting(pixels); |
} |
-void LayerHost::OnSurfaceConnectionCreated() { |
- DCHECK_EQ(state_, kWaitingForSurfaceService); |
- state_ = kReadyForFrame; |
- if (frame_requested_) |
- BeginFrameSoon(); |
-} |
- |
void LayerHost::OnSurfaceIdAvailable(mojo::SurfaceIdPtr surface_id) { |
client_->OnSurfaceIdAvailable(surface_id.Pass()); |
} |