Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |