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

Unified Diff: components/view_manager/public/interfaces/view_manager.mojom

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
Index: components/view_manager/public/interfaces/view_manager.mojom
diff --git a/components/view_manager/public/interfaces/view_manager.mojom b/components/view_manager/public/interfaces/view_manager.mojom
index 18eac2470481871702aec4bc1eea5483eeac8f47..d8e94f24f5343da10092ad1730d2390eff9bb917 100644
--- a/components/view_manager/public/interfaces/view_manager.mojom
+++ b/components/view_manager/public/interfaces/view_manager.mojom
@@ -4,6 +4,7 @@
module mojo;
+import "components/view_manager/public/interfaces/compositor_frame.mojom";
import "components/view_manager/public/interfaces/surface_id.mojom";
import "components/view_manager/public/interfaces/view_manager_constants.mojom";
import "mojo/application/public/interfaces/service_provider.mojom";
@@ -38,6 +39,13 @@ enum ErrorCode {
ILLEGAL_ARGUMENT,
};
+interface CompositorFrameReceiver {
rjkroege 2015/08/13 18:04:01 why didn't you put this with the compositor_frame?
Fady Samuel 2015/08/17 21:11:11 Moved
+ // After the submitted frame is drawn for the first time, the surface will
+ // respond to the SubmitFrame message. Clients should use this acknowledgement
+ // to ratelimit frame submissions.
+ SubmitFrame(CompositorFrame frame) => ();
+};
+
// Views are identified by a uint32. The upper 16 bits are the connection id,
// and the lower 16 the id assigned by the client.
//
@@ -75,6 +83,10 @@ interface ViewManagerService {
string name,
array<uint8>? value) => (bool success);
+ // Sets the CompositorFrameReceiver on a particular view.
+ RequestCompositorFrameReceiver(uint32 view_id,
+ CompositorFrameReceiver& receiver);
+
// Reparents a view.
// This fails for any of the following reasons:
// . |parent| or |child| does not identify a valid view.

Powered by Google App Engine
This is Rietveld 408576698