Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "geometry/public/interfaces/geometry.mojom"; | 7 import "geometry/public/interfaces/geometry.mojom"; |
| 8 import "gpu/public/interfaces/command_buffer.mojom"; | 8 import "gpu/public/interfaces/command_buffer.mojom"; |
| 9 import "gpu/public/interfaces/viewport_parameter_listener.mojom"; | 9 import "gpu/public/interfaces/viewport_parameter_listener.mojom"; |
| 10 | 10 |
| 11 interface Gpu { | 11 interface Gpu { |
| 12 CreateOnscreenGLES2Context(uint64 native_viewport_id, | 12 // Creates a new offscreen OpenGL ES 2.0 context. |
| 13 Size size, | |
| 14 CommandBuffer& gles2_client, | |
| 15 ViewportParameterListener? listener); | |
| 16 CreateOffscreenGLES2Context(CommandBuffer& gles2_client); | 13 CreateOffscreenGLES2Context(CommandBuffer& gles2_client); |
| 17 }; | 14 }; |
| 15 | |
| 16 // A ContextProvider can be used to provide new command buffers related to a | |
| 17 // particular context, for instance configured to draw to a particular display. | |
| 18 interface ContextProvider { | |
| 19 // This initializes a new command buffer for this provider when available, | |
| 20 // closing connections to the previously created command buffer (if any). | |
| 21 // | |
| 22 // This call may not return for an extended period of time if a command | |
| 23 // buffer cannot be produced immediately, for example if it is associated | |
| 24 // with a view that is offscreen. | |
| 25 // | |
| 26 // If a viewport_parameter_listener is provided it will be when vsync | |
|
qsr
2015/02/20 11:25:47
It seems you are missing some part of this sentenc
jamesr
2015/02/20 22:01:05
Done.
| |
| 27 // parameters change for this context. | |
| 28 Create(ViewportParameterListener? viewport_parameter_listener) | |
| 29 => (CommandBuffer? gles2_client); | |
| 30 }; | |
| OLD | NEW |