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

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

Issue 1116883002: Automatically redraw the display on resume. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | services/native_viewport/onscreen_context_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "gpu/public/interfaces/command_buffer.mojom"; 7 import "gpu/public/interfaces/command_buffer.mojom";
8 import "gpu/public/interfaces/viewport_parameter_listener.mojom"; 8 import "gpu/public/interfaces/viewport_parameter_listener.mojom";
9 9
10 // A ContextProvider can be used to provide new command buffers related to a 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. 11 // particular context, for instance configured to draw to a particular display.
12 interface ContextProvider { 12 interface ContextProvider {
13 // This initializes a new command buffer for this provider when available, 13 // This initializes a new command buffer for this provider when available,
14 // closing connections to the previously created command buffer (if any). 14 // closing connections to the previously created command buffer (if any).
15 // 15 //
16 // This call may not return for an extended period of time if a command 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 17 // buffer cannot be produced immediately, for example if it is associated
18 // with a view that is offscreen. 18 // with a view that is offscreen.
19 // 19 //
20 // If a viewport_parameter_listener is provided it will notified be when 20 // If a viewport_parameter_listener is provided it will notified be when
21 // vsync parameters change for this context. 21 // vsync parameters change for this context.
22 // 22 //
23 // The returned handle will be null if no command buffer can be created for 23 // The returned handle will be null if no command buffer can be created for
24 // this request, for example if another request is made on the same provider 24 // this request, for example if another request is made on the same provider
25 // before a previous call returns. 25 // before a previous call returns.
26 Create(ViewportParameterListener? viewport_parameter_listener) 26 Create(ViewportParameterListener? viewport_parameter_listener)
27 => (CommandBuffer? gles2_client); 27 => (CommandBuffer? gles2_client);
28
29 // The callback for this method will be called when a new viewport is
jamesr 2015/05/01 00:15:40 this shouldn't be needed - the callback to Create(
30 // created and passed to this ContextProvider.
31 NotifyOnViewportCreated() => ();
28 }; 32 };
OLDNEW
« no previous file with comments | « no previous file | services/native_viewport/onscreen_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698