Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(825)

Unified Diff: sky/compositor/layer_host.cc

Issue 826423008: Use local ids for Surfaces APIs that can only apply to local surfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/compositor/layer_host.h ('k') | sky/compositor/surface_holder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « sky/compositor/layer_host.h ('k') | sky/compositor/surface_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698