OLD | NEW |
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 Loading... |
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_ */ |
OLD | NEW |