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_PPB_IMAGE_DATA_H_ | 5 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_ |
6 #define PPAPI_C_PPB_IMAGE_DATA_H_ | 6 #define PPAPI_C_PPB_IMAGE_DATA_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_macros.h" | 10 #include "ppapi/c/pp_macros.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 * width * 4 since there may be padding at the end of the lines. | 90 * width * 4 since there may be padding at the end of the lines. |
91 */ | 91 */ |
92 int32_t stride; | 92 int32_t stride; |
93 }; | 93 }; |
94 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16); | 94 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16); |
95 /** | 95 /** |
96 * @} | 96 * @} |
97 */ | 97 */ |
98 | 98 |
99 #define PPB_IMAGEDATA_INTERFACE_0_3 "PPB_ImageData;0.3" | 99 #define PPB_IMAGEDATA_INTERFACE_0_3 "PPB_ImageData;0.3" |
100 #define PPB_IMAGEDATA_INTERFACE PPB_IMAGEDATA_INTERFACE_0_3 | 100 #define PPB_IMAGEDATA_INTERFACE_1_0 "PPB_ImageData;1.0" |
| 101 #define PPB_IMAGEDATA_INTERFACE PPB_IMAGEDATA_INTERFACE_1_0 |
101 | 102 |
102 /** | 103 /** |
103 * @addtogroup Interfaces | 104 * @addtogroup Interfaces |
104 * @{ | 105 * @{ |
105 */ | 106 */ |
106 | 107 |
107 /** | 108 /** |
108 * The <code>PPB_ImageData</code> interface contains pointers to several | 109 * The <code>PPB_ImageData</code> interface contains pointers to several |
109 * functions for determining the browser's treatment of image data. | 110 * functions for determining the browser's treatment of image data. |
110 */ | 111 */ |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 * @param[in] image_data A <code>PP_Resource</code> corresponding to image | 204 * @param[in] image_data A <code>PP_Resource</code> corresponding to image |
204 * data. | 205 * data. |
205 */ | 206 */ |
206 void (*Unmap)(PP_Resource image_data); | 207 void (*Unmap)(PP_Resource image_data); |
207 }; | 208 }; |
208 /** | 209 /** |
209 * @} | 210 * @} |
210 */ | 211 */ |
211 | 212 |
212 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ | 213 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ |
OLD | NEW |