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: components/view_manager/view_manager_service_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: Yet anther rebase (YAR!!!) 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/view_manager_service_impl.cc
diff --git a/components/view_manager/view_manager_service_impl.cc b/components/view_manager/view_manager_service_impl.cc
index 83af914a6e2078d8cdddb0fd2ebf3c9b449409a9..b0479f98923e9fe0f369952c397ff2f93456c504 100644
--- a/components/view_manager/view_manager_service_impl.cc
+++ b/components/view_manager/view_manager_service_impl.cc
@@ -714,6 +714,16 @@ void ViewManagerServiceImpl::SetViewProperty(
callback.Run(success);
}
+void ViewManagerServiceImpl::RequestCompositorFrameReceiver(
+ mojo::Id view_id,
+ mojo::InterfaceRequest<mojo::CompositorFrameReceiver> receiver) {
+ ServerView* view = GetView(ViewIdFromTransportId(view_id));
+ const bool success = view && access_policy_->CanSetViewSurfaceId(view);
+ if (!success)
+ return;
+ view->Bind(receiver.Pass());
+}
+
void ViewManagerServiceImpl::SetViewTextInputState(
uint32_t view_id,
mojo::TextInputStatePtr state) {

Powered by Google App Engine
This is Rietveld 408576698