| OLD | NEW |
| 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 | 5 |
| 6 /* From ppb_compositor.idl modified Tue Jun 3 12:44:44 2014. */ | 6 /* From ppb_compositor.idl modified Tue Jun 3 12:44:44 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_COMPOSITOR_H_ | 8 #ifndef PPAPI_C_PPB_COMPOSITOR_H_ |
| 9 #define PPAPI_C_PPB_COMPOSITOR_H_ | 9 #define PPAPI_C_PPB_COMPOSITOR_H_ |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 * resource is a compositor resource or <code>PP_FALSE</code> otherwise. | 91 * resource is a compositor resource or <code>PP_FALSE</code> otherwise. |
| 92 */ | 92 */ |
| 93 PP_Bool (*IsCompositor)(PP_Resource resource); | 93 PP_Bool (*IsCompositor)(PP_Resource resource); |
| 94 /** | 94 /** |
| 95 * Creates a Compositor resource. | 95 * Creates a Compositor resource. |
| 96 * | 96 * |
| 97 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 97 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 98 * of a module. | 98 * of a module. |
| 99 * | 99 * |
| 100 * @return A <code>PP_Resource</code> containing the compositor resource if | 100 * @return A <code>PP_Resource</code> containing the compositor resource if |
| 101 * sucessful or 0 otherwise. | 101 * successful or 0 otherwise. |
| 102 */ | 102 */ |
| 103 PP_Resource (*Create)(PP_Instance instance); | 103 PP_Resource (*Create)(PP_Instance instance); |
| 104 /** | 104 /** |
| 105 * Creates a new <code>PPB_CompositorLayer</code> and adds it to the end | 105 * Creates a new <code>PPB_CompositorLayer</code> and adds it to the end |
| 106 * of the layer stack. A <code>PP_Resource</code> containing the layer is | 106 * of the layer stack. A <code>PP_Resource</code> containing the layer is |
| 107 * returned. It is uninitialized, <code>SetColor()</code>, | 107 * returned. It is uninitialized, <code>SetColor()</code>, |
| 108 * <code>SetTexture</code> or <code>SetImage</code> should be used to | 108 * <code>SetTexture</code> or <code>SetImage</code> should be used to |
| 109 * initialize it. The layer will appear above other pre-existing layers. | 109 * initialize it. The layer will appear above other pre-existing layers. |
| 110 * If <code>ResetLayers</code> is called or the <code>PPB_Compositor</code> is | 110 * If <code>ResetLayers</code> is called or the <code>PPB_Compositor</code> is |
| 111 * released, the returned layer will be invalidated, and any further calls on | 111 * released, the returned layer will be invalidated, and any further calls on |
| 112 * the layer will return <code>PP_ERROR_BADRESOURCE</code>. | 112 * the layer will return <code>PP_ERROR_BADRESOURCE</code>. |
| 113 * | 113 * |
| 114 * param[in] compositor A <code>PP_Resource</code> corresponding to | 114 * param[in] compositor A <code>PP_Resource</code> corresponding to |
| 115 * a compositor layer resource. | 115 * a compositor layer resource. |
| 116 * | 116 * |
| 117 * @return A <code>PP_Resource</code> containing the compositor layer | 117 * @return A <code>PP_Resource</code> containing the compositor layer |
| 118 * resource if sucessful or 0 otherwise. | 118 * resource if successful or 0 otherwise. |
| 119 */ | 119 */ |
| 120 PP_Resource (*AddLayer)(PP_Resource compositor); | 120 PP_Resource (*AddLayer)(PP_Resource compositor); |
| 121 /** | 121 /** |
| 122 * Commits layers added by <code>AddLayer()</code> to the chromium compositor. | 122 * Commits layers added by <code>AddLayer()</code> to the chromium compositor. |
| 123 * | 123 * |
| 124 * param[in] compositor A <code>PP_Resource</code> corresponding to | 124 * param[in] compositor A <code>PP_Resource</code> corresponding to |
| 125 * a compositor layer resource. | 125 * a compositor layer resource. |
| 126 * @param[in] cc A <code>PP_CompletionCallback</code> to be called when | 126 * @param[in] cc A <code>PP_CompletionCallback</code> to be called when |
| 127 * layers have been represented on screen. | 127 * layers have been represented on screen. |
| 128 * | 128 * |
| (...skipping 10 matching lines...) Expand all Loading... |
| 139 * @return An int32_t containing a result code from <code>pp_errors.h</code>. | 139 * @return An int32_t containing a result code from <code>pp_errors.h</code>. |
| 140 */ | 140 */ |
| 141 int32_t (*ResetLayers)(PP_Resource compositor); | 141 int32_t (*ResetLayers)(PP_Resource compositor); |
| 142 }; | 142 }; |
| 143 /** | 143 /** |
| 144 * @} | 144 * @} |
| 145 */ | 145 */ |
| 146 | 146 |
| 147 #endif /* PPAPI_C_PPB_COMPOSITOR_H_ */ | 147 #endif /* PPAPI_C_PPB_COMPOSITOR_H_ */ |
| 148 | 148 |
| OLD | NEW |