Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 module mojo; | |
| 6 | |
| 7 import "gpu/public/interfaces/command_buffer.mojom"; | |
| 8 import "gpu/public/interfaces/viewport_parameter_listener.mojom"; | |
| 9 | |
| 10 // A ContextProvider can be used to provide new command buffers related to a | |
| 11 // particular context, for instance configured to draw to a particular display. | |
| 12 interface ContextProvider { | |
| 13 // This initializes a new command buffer for this provider when available, | |
| 14 // closing connections to the previously created command buffer (if any). | |
| 15 // | |
| 16 // This call may not return for an extended period of time if a command | |
| 17 // buffer cannot be produced immediately, for example if it is associated | |
| 18 // with a view that is offscreen. | |
| 19 // | |
| 20 // If a viewport_parameter_listener is provided it will notified be when | |
| 21 // vsync parameters change for this context. | |
|
qsr
2015/03/04 10:33:18
Do you want to comment about when the returned buf
jamesr
2015/03/04 23:00:27
Done.
| |
| 22 Create(ViewportParameterListener? viewport_parameter_listener) | |
| 23 => (CommandBuffer? gles2_client); | |
| 24 }; | |
| OLD | NEW |