| 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 [generate_thunk] | 6 [generate_thunk] |
| 7 | 7 |
| 8 label Chrome { | 8 label Chrome { |
| 9 [channel=dev] M37 = 0.1 | 9 [channel=dev] M37 = 0.1 |
| 10 }; | 10 }; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 */ | 77 */ |
| 78 PP_Bool IsCompositor([in] PP_Resource resource); | 78 PP_Bool IsCompositor([in] PP_Resource resource); |
| 79 | 79 |
| 80 /** | 80 /** |
| 81 * Creates a Compositor resource. | 81 * Creates a Compositor resource. |
| 82 * | 82 * |
| 83 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 83 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 84 * of a module. | 84 * of a module. |
| 85 * | 85 * |
| 86 * @return A <code>PP_Resource</code> containing the compositor resource if | 86 * @return A <code>PP_Resource</code> containing the compositor resource if |
| 87 * sucessful or 0 otherwise. | 87 * successful or 0 otherwise. |
| 88 */ | 88 */ |
| 89 PP_Resource Create([in] PP_Instance instance); | 89 PP_Resource Create([in] PP_Instance instance); |
| 90 | 90 |
| 91 /** | 91 /** |
| 92 * Creates a new <code>PPB_CompositorLayer</code> and adds it to the end | 92 * Creates a new <code>PPB_CompositorLayer</code> and adds it to the end |
| 93 * of the layer stack. A <code>PP_Resource</code> containing the layer is | 93 * of the layer stack. A <code>PP_Resource</code> containing the layer is |
| 94 * returned. It is uninitialized, <code>SetColor()</code>, | 94 * returned. It is uninitialized, <code>SetColor()</code>, |
| 95 * <code>SetTexture</code> or <code>SetImage</code> should be used to | 95 * <code>SetTexture</code> or <code>SetImage</code> should be used to |
| 96 * initialize it. The layer will appear above other pre-existing layers. | 96 * initialize it. The layer will appear above other pre-existing layers. |
| 97 * If <code>ResetLayers</code> is called or the <code>PPB_Compositor</code> is | 97 * If <code>ResetLayers</code> is called or the <code>PPB_Compositor</code> is |
| 98 * released, the returned layer will be invalidated, and any further calls on | 98 * released, the returned layer will be invalidated, and any further calls on |
| 99 * the layer will return <code>PP_ERROR_BADRESOURCE</code>. | 99 * the layer will return <code>PP_ERROR_BADRESOURCE</code>. |
| 100 * | 100 * |
| 101 * param[in] compositor A <code>PP_Resource</code> corresponding to | 101 * param[in] compositor A <code>PP_Resource</code> corresponding to |
| 102 * a compositor layer resource. | 102 * a compositor layer resource. |
| 103 * | 103 * |
| 104 * @return A <code>PP_Resource</code> containing the compositor layer | 104 * @return A <code>PP_Resource</code> containing the compositor layer |
| 105 * resource if sucessful or 0 otherwise. | 105 * resource if successful or 0 otherwise. |
| 106 */ | 106 */ |
| 107 PP_Resource AddLayer([in] PP_Resource compositor); | 107 PP_Resource AddLayer([in] PP_Resource compositor); |
| 108 | 108 |
| 109 /** | 109 /** |
| 110 * Commits layers added by <code>AddLayer()</code> to the chromium compositor. | 110 * Commits layers added by <code>AddLayer()</code> to the chromium compositor. |
| 111 * | 111 * |
| 112 * param[in] compositor A <code>PP_Resource</code> corresponding to | 112 * param[in] compositor A <code>PP_Resource</code> corresponding to |
| 113 * a compositor layer resource. | 113 * a compositor layer resource. |
| 114 * @param[in] cc A <code>PP_CompletionCallback</code> to be called when | 114 * @param[in] cc A <code>PP_CompletionCallback</code> to be called when |
| 115 * layers have been represented on screen. | 115 * layers have been represented on screen. |
| 116 * | 116 * |
| 117 * @return An int32_t containing a result code from <code>pp_errors.h</code>. | 117 * @return An int32_t containing a result code from <code>pp_errors.h</code>. |
| 118 */ | 118 */ |
| 119 int32_t CommitLayers([in] PP_Resource compositor, | 119 int32_t CommitLayers([in] PP_Resource compositor, |
| 120 [in] PP_CompletionCallback cc); | 120 [in] PP_CompletionCallback cc); |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * Resets layers added by <code>AddLayer()</code>. | 123 * Resets layers added by <code>AddLayer()</code>. |
| 124 * | 124 * |
| 125 * param[in] compositor A <code>PP_Resource</code> corresponding to | 125 * param[in] compositor A <code>PP_Resource</code> corresponding to |
| 126 * a compositor layer resource. | 126 * a compositor layer resource. |
| 127 * | 127 * |
| 128 * @return An int32_t containing a result code from <code>pp_errors.h</code>. | 128 * @return An int32_t containing a result code from <code>pp_errors.h</code>. |
| 129 */ | 129 */ |
| 130 int32_t ResetLayers([in] PP_Resource compositor); | 130 int32_t ResetLayers([in] PP_Resource compositor); |
| 131 }; | 131 }; |
| OLD | NEW |