OLD | NEW |
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 "components/gpu/public/interfaces/context_provider.mojom"; | 7 import "components/view_manager/public/interfaces/context_provider.mojom"; |
8 import "components/gpu/public/interfaces/viewport_parameter_listener.mojom"; | 8 import "components/view_manager/public/interfaces/viewport_parameter_listener.mo
jom"; |
9 import "components/surfaces/public/interfaces/surfaces.mojom"; | 9 import "components/view_manager/public/interfaces/surfaces.mojom"; |
10 | 10 |
11 interface Display { | 11 interface Display { |
12 // Submits a new frame to the display to be drawn when possible. The callback | 12 // Submits a new frame to the display to be drawn when possible. The callback |
13 // will be run after the frame has been issued to the display but possibly | 13 // will be run after the frame has been issued to the display but possibly |
14 // before the frame is actually visible. | 14 // before the frame is actually visible. |
15 // | 15 // |
16 // The Display will be resized to the size of the last entry in |frame|'s | 16 // The Display will be resized to the size of the last entry in |frame|'s |
17 // |passes| list (aka the root pass). | 17 // |passes| list (aka the root pass). |
18 // | 18 // |
19 // Any resources submitted in the frame will be returned via the | 19 // Any resources submitted in the frame will be returned via the |
20 // ResourceReturner associated with the Display at construction time. | 20 // ResourceReturner associated with the Display at construction time. |
21 SubmitFrame(Frame frame) => (); | 21 SubmitFrame(Frame frame) => (); |
22 }; | 22 }; |
23 | 23 |
24 // DisplayFactory creates new Display instances. | 24 // DisplayFactory creates new Display instances. |
25 interface DisplayFactory { | 25 interface DisplayFactory { |
26 // Create associates a Display that will draw to contexts produced by | 26 // Create associates a Display that will draw to contexts produced by |
27 // |context_provider|. Any resources submitted to the display will be | 27 // |context_provider|. Any resources submitted to the display will be |
28 // returned via the |returner|, if supplied. | 28 // returned via the |returner|, if supplied. |
29 Create(ContextProvider context_provider, | 29 Create(ContextProvider context_provider, |
30 ResourceReturner? returner, | 30 ResourceReturner? returner, |
31 Display& display_request); | 31 Display& display_request); |
32 }; | 32 }; |
33 | 33 |
OLD | NEW |