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

Unified Diff: components/view_manager/server_view_delegate.h

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/server_view_delegate.h
diff --git a/components/view_manager/server_view_delegate.h b/components/view_manager/server_view_delegate.h
index e2f92dfef9f38dc5119d3bb7afe079ac77c0a9c5..89e6049e7f57277ee35b8cbe950d7307c593a40c 100644
--- a/components/view_manager/server_view_delegate.h
+++ b/components/view_manager/server_view_delegate.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_
#define COMPONENTS_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_
+#include "components/view_manager/public/interfaces/view_manager.mojom.h"
#include "components/view_manager/public/interfaces/view_manager_constants.mojom.h"
namespace gfx {
@@ -27,6 +28,10 @@ class ServerView;
// ServerViewDelegate gets non-const arguments.
class ServerViewDelegate {
public:
+ virtual void SubmitCompositorFrame(ServerView* view,
+ mojo::CompositorFramePtr frame,
+ const mojo::Closure& callback) = 0;
+
// Invoked when a view is about to be destroyed; before any of the children
// have been removed and before the view has been removed from its parent.
virtual void PrepareToDestroyView(ServerView* view) = 0;

Powered by Google App Engine
This is Rietveld 408576698