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

Side by Side Diff: ppapi/c/dev/ppb_layer_compositor_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_graphics_3d_dev.h ('k') | ppapi/c/dev/ppb_surface_3d_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_LAYER_COMPOSITOR_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_
6 #define PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ 6 #define PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_size.h" 12 #include "ppapi/c/pp_size.h"
13 13
14 #define PPB_LAYER_COMPOSITOR_DEV_INTERFACE "PPB_LayerCompositor(Dev);0.1" 14 #define PPB_LAYER_COMPOSITOR_DEV_INTERFACE_0_2 "PPB_LayerCompositor(Dev);0.2"
15 #define PPB_LAYER_COMPOSITOR_DEV_INTERFACE \
16 PPB_LAYER_COMPOSITOR_DEV_INTERFACE_0_2
15 17
16 // PPB_LayerCompositor allows multiple layers of PPB_Surface3D and 18 // PPB_LayerCompositor allows multiple layers of PPB_Surface3D and
17 // PPB_VideoLayer be bound to a plugin instance. 19 // PPB_VideoLayer be bound to a plugin instance.
18 // 20 //
19 // Use PPB_Instance's BindGraphics() to bind a PPB_LayerCompositor to the 21 // Use PPB_Instance's BindGraphics() to bind a PPB_LayerCompositor to the
20 // instance. 22 // instance.
21 // 23 //
22 // This also allows each layer to be updated seperately to avoid excessive 24 // This also allows each layer to be updated seperately to avoid excessive
23 // compositing. 25 // compositing.
24 struct PPB_LayerCompositor_Dev { 26 struct PPB_LayerCompositor_Dev {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // 69 //
68 // Since this is an asynchronous operation, |callback| will be called when 70 // Since this is an asynchronous operation, |callback| will be called when
69 // this operation is done. 71 // this operation is done.
70 // 72 //
71 // Returns an error code from pp_errors.h. 73 // Returns an error code from pp_errors.h.
72 int32_t (*SwapBuffers)(PP_Resource compositor, 74 int32_t (*SwapBuffers)(PP_Resource compositor,
73 struct PP_CompletionCallback callback); 75 struct PP_CompletionCallback callback);
74 }; 76 };
75 77
76 #endif /* PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ */ 78 #endif /* PPAPI_C_DEV_PPB_LAYER_COMPOSITOR_DEV_H_ */
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_graphics_3d_dev.h ('k') | ppapi/c/dev/ppb_surface_3d_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698