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

Side by Side Diff: mojo/services/gpu/public/interfaces/gpu.mojom

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698