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

Side by Side Diff: ppapi/c/dev/ppb_graphics_3d_dev.h

Issue 6899055: PPAPI: Force async callback invocation option. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppb_file_system_dev.h ('k') | ppapi/c/dev/ppb_layer_compositor_dev.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 (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 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 #ifndef PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_
6 #define PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ 6 #define PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_
7 7
8 #include "ppapi/c/dev/pp_graphics_3d_dev.h" 8 #include "ppapi/c/dev/pp_graphics_3d_dev.h"
9 9
10 #include "ppapi/c/pp_bool.h" 10 #include "ppapi/c/pp_bool.h"
(...skipping 13 matching lines...) Expand all
24 // context = g3d->Create(instance, config, attribs, &context); 24 // context = g3d->Create(instance, config, attribs, &context);
25 // inst->BindGraphics(instance, context); 25 // inst->BindGraphics(instance, context);
26 // 26 //
27 // // Present one frame. 27 // // Present one frame.
28 // gles2->Clear(context, GL_COLOR_BUFFER); 28 // gles2->Clear(context, GL_COLOR_BUFFER);
29 // g3d->SwapBuffers(context); 29 // g3d->SwapBuffers(context);
30 // 30 //
31 // // Shutdown. 31 // // Shutdown.
32 // core->ReleaseResource(context); 32 // core->ReleaseResource(context);
33 33
34 #define PPB_GRAPHICS_3D_DEV_INTERFACE_0_4 "PPB_Graphics3D(Dev);0.4" 34 #define PPB_GRAPHICS_3D_DEV_INTERFACE_0_5 "PPB_Graphics3D(Dev);0.5"
35 #define PPB_GRAPHICS_3D_DEV_INTERFACE PPB_GRAPHICS_3D_DEV_INTERFACE_0_4 35 #define PPB_GRAPHICS_3D_DEV_INTERFACE PPB_GRAPHICS_3D_DEV_INTERFACE_0_5
36 36
37 struct PPB_Graphics3D_Dev { 37 struct PPB_Graphics3D_Dev {
38 // TODO(alokp): Do these functions need module argument? 38 // TODO(alokp): Do these functions need module argument?
39 39
40 // Retrieves the list of all available PP_Config3D_Devs. 40 // Retrieves the list of all available PP_Config3D_Devs.
41 // configs is a pointer to a buffer containing config_size elements. 41 // configs is a pointer to a buffer containing config_size elements.
42 // On success, PP_OK is returned. The number of configurations is returned 42 // On success, PP_OK is returned. The number of configurations is returned
43 // in num_config, and elements 0 through num_config - 1 of configs are filled 43 // in num_config, and elements 0 through num_config - 1 of configs are filled
44 // in with valid PP_Config3D_Devs. No more than config_size 44 // in with valid PP_Config3D_Devs. No more than config_size
45 // PP_Config3D_Devs will be returned even if more are available. 45 // PP_Config3D_Devs will be returned even if more are available.
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // Because the callback is executed (or thread unblocked) only when the 219 // Because the callback is executed (or thread unblocked) only when the
220 // plugin's current state is actually on the screen, this function provides a 220 // plugin's current state is actually on the screen, this function provides a
221 // way to rate limit animations. By waiting until the image is on the screen 221 // way to rate limit animations. By waiting until the image is on the screen
222 // before painting the next frame, you can ensure you're not generating 222 // before painting the next frame, you can ensure you're not generating
223 // updates faster than the screen can be updated. 223 // updates faster than the screen can be updated.
224 int32_t (*SwapBuffers)(PP_Resource context, 224 int32_t (*SwapBuffers)(PP_Resource context,
225 struct PP_CompletionCallback callback); 225 struct PP_CompletionCallback callback);
226 }; 226 };
227 227
228 #endif /* PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ */ 228 #endif /* PPAPI_C_DEV_PPB_GRAPHICS_3D_DEV_H_ */
229
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_file_system_dev.h ('k') | ppapi/c/dev/ppb_layer_compositor_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698