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

Side by Side Diff: components/view_manager/public/interfaces/compositor_frame.mojom

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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mojo; 5 module mojo;
6 6
7 import "ui/mojo/geometry/geometry.mojom"; 7 import "ui/mojo/geometry/geometry.mojom";
8 import "components/view_manager/public/interfaces/quads.mojom"; 8 import "components/view_manager/public/interfaces/quads.mojom";
9 9
10 enum ResourceFormat { 10 enum ResourceFormat {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 MailboxHolder mailbox_holder; 43 MailboxHolder mailbox_holder;
44 bool is_repeated; 44 bool is_repeated;
45 bool is_software; 45 bool is_software;
46 }; 46 };
47 47
48 // See src/cc/output/compositor_frame.h. 48 // See src/cc/output/compositor_frame.h.
49 struct CompositorFrame { 49 struct CompositorFrame {
50 array<TransferableResource> resources; 50 array<TransferableResource> resources;
51 array<Pass> passes; 51 array<Pass> passes;
52 }; 52 };
53
54 // CompositorFrameReceiver is an interface for receiving CompositorFrame
55 // structs. This is a separate interface to allow CompositorFrames to be
56 // delivered from supplementary (not main) threads of a mojo app.
57 interface CompositorFrameReceiver {
58 // After the submitted frame is drawn for the first time, the receiver will
59 // respond to the SubmitFrame message. Clients should use this acknowledgement
60 // to ratelimit frame submissions.
61 SubmitCompositorFrame(CompositorFrame frame) => ();
62 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698