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

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: Rebased 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
« no previous file with comments | « components/view_manager/server_view.cc ('k') | components/view_manager/surfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2611987c2711891d39afce8964d6289192e93724 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/compositor_frame.mojom.h"
#include "components/view_manager/public/interfaces/view_manager_constants.mojom.h"
namespace gfx {
@@ -15,6 +16,10 @@ namespace mojo {
class ViewportMetrics;
}
+namespace surfaces {
+class SurfacesState;
+}
+
namespace view_manager {
class ServerView;
@@ -27,6 +32,8 @@ class ServerView;
// ServerViewDelegate gets non-const arguments.
class ServerViewDelegate {
public:
+ virtual surfaces::SurfacesState* GetSurfacesState() = 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;
« no previous file with comments | « components/view_manager/server_view.cc ('k') | components/view_manager/surfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698