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

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

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: Created 5 years, 2 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 2015 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 [DartPackage="mojo_services"]
6 module mojo;
7
8 import "gpu/interfaces/context_provider.mojom";
9 import "gpu/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 the last entry in |frame|'s
18 // |passes| list (aka the root pass).
19 //
20 // Any resources submitted in the frame will be returned via the
21 // ResourceReturner associated with the Display at construction time.
22 SubmitFrame(Frame frame) => ();
23 };
24
25 // DisplayFactory creates new Display instances.
26 interface DisplayFactory {
27 // Create associates a Display that will draw to contexts produced by
28 // |context_provider|. Any resources submitted to the display will be
29 // returned via the |returner|, if supplied.
30 Create(ContextProvider context_provider,
31 ResourceReturner? returner,
32 Display& display_request);
33 };
34
OLDNEW
« no previous file with comments | « mojo/services/surfaces/public/interfaces/BUILD.gn ('k') | mojo/services/surfaces/public/interfaces/quads.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698