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

Side by Side Diff: mojo/services/surfaces/public/interfaces/display.mojom

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module mojo;
6
7 import "gpu/public/interfaces/command_buffer.mojom";
8 import "gpu/public/interfaces/gpu.mojom";
9 import "gpu/public/interfaces/viewport_parameter_listener.mojom";
10 import "surfaces/public/interfaces/surfaces.mojom";
11
12 interface Display {
13 // Submits a new frame to the display to be drawn when possible. The callback
14 // will be run after the frame has been issued to the display but possibly
15 // before the frame is actually visible.
16 //
17 // The Display will be resized to the size of |frame|'s root pass.
qsr 2015/02/20 11:25:47 Does pass has a specific meaning in this context?
jamesr 2015/02/20 22:01:05 mojo.Pass is a mojom type and |frame| has a field
18 //
19 // Any resources submitted in the frame will be returned via the
20 // ResourceReturner associated with the Display at construction time.
21 SubmitFrame(Frame frame) => ();
22 };
23
24 // DisplayFactory creates new Display instances.
25 interface DisplayFactory {
26 // Create associates a Display that will draw to contexts associated with
27 // |context_provider|. The display will try to stay in sync with the
28 // vsync parameters from |viewport_parameter_listener|, if supplied. Any
29 // resources submitted to the display will be returned via the |returner|, if
30 // supplied.
31 Create(ContextProvider context_provider,
32 ViewportParameterListener? viewport_parameter_listener,
33 ResourceReturner? returner,
34 Display& display_request);
35 };
36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698