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

Unified Diff: components/view_manager/public/cpp/lib/view_tree_client_impl.cc

Issue 1281663002: Mandoline: Allow submitting CompositorFrames directly to mojo::Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + added uip::Surface Created 5 years, 4 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
Index: components/view_manager/public/cpp/lib/view_tree_client_impl.cc
diff --git a/components/view_manager/public/cpp/lib/view_tree_client_impl.cc b/components/view_manager/public/cpp/lib/view_tree_client_impl.cc
index 4bf28e2042bbbbe42ce75e525bf72f362f737981..ad8309685ad4a326637ebd300efadc845f6f8368 100644
--- a/components/view_manager/public/cpp/lib/view_tree_client_impl.cc
+++ b/components/view_manager/public/cpp/lib/view_tree_client_impl.cc
@@ -146,14 +146,6 @@ void ViewTreeClientImpl::SetBounds(Id view_id, const Rect& bounds) {
tree_->SetViewBounds(view_id, bounds.Clone(), ActionCompletedCallback());
}
-void ViewTreeClientImpl::SetSurfaceId(Id view_id, SurfaceIdPtr surface_id) {
- DCHECK(tree_);
- if (surface_id.is_null())
- return;
- tree_->SetViewSurfaceId(
- view_id, surface_id.Pass(), ActionCompletedCallback());
-}
-
void ViewTreeClientImpl::SetFocus(Id view_id) {
// In order for us to get here we had to have exposed a view, which implies we
// got a connection.
@@ -202,6 +194,13 @@ void ViewTreeClientImpl::EmbedAllowingReembed(mojo::URLRequestPtr request,
ActionCompletedCallback());
}
+void ViewTreeClientImpl::RequestSurface(Id view_id,
+ InterfaceRequest<Surface> surface,
+ SurfaceClientPtr client) {
+ DCHECK(tree_);
+ tree_->RequestSurface(view_id, surface.Pass(), client.Pass());
+}
+
void ViewTreeClientImpl::AddView(View* view) {
DCHECK(views_.find(view->id()) == views_.end());
views_[view->id()] = view;

Powered by Google App Engine
This is Rietveld 408576698