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

Unified Diff: sky/compositor/surface_holder.cc

Issue 807733002: Split surface id and simplify connecting to surfaces service (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
Index: sky/compositor/surface_holder.cc
diff --git a/sky/compositor/surface_holder.cc b/sky/compositor/surface_holder.cc
index 26d2098c96061ef918b92ce79ed37c54a5247e2d..e8475802f301a0fecba33f20a8c06b8f3e6534fb 100644
--- a/sky/compositor/surface_holder.cc
+++ b/sky/compositor/surface_holder.cc
@@ -51,13 +51,16 @@ void SurfaceHolder::SetSize(const gfx::Size& size) {
surface_id_ = mojo::SurfaceId::New();
}
- surface_id_->id = surface_allocator_->CreateSurfaceId();
- surface_->CreateSurface(surface_id_.Clone(), mojo::Size::From(size));
+ surface_id_ = surface_allocator_->CreateSurfaceId();
+ surface_->CreateSurface(surface_id_.Clone());
size_ = size;
client_->OnSurfaceIdAvailable(surface_id_.Clone());
}
+void SurfaceHolder::SetIdNamespace(uint32_t id_namespace) {
+}
+
void SurfaceHolder::ReturnResources(
mojo::Array<mojo::ReturnedResourcePtr> resources) {
// TODO(abarth): The surface service shouldn't spam us with empty calls.

Powered by Google App Engine
This is Rietveld 408576698