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_1_0 "PPB_ImageData;1.0" | 100 #define PPB_IMAGEDATA_INTERFACE PPB_IMAGEDATA_INTERFACE_0_3 |
101 #define PPB_IMAGEDATA_INTERFACE PPB_IMAGEDATA_INTERFACE_1_0 | |
102 | 101 |
103 /** | 102 /** |
104 * @addtogroup Interfaces | 103 * @addtogroup Interfaces |
105 * @{ | 104 * @{ |
106 */ | 105 */ |
107 | 106 |
108 /** | 107 /** |
109 * The <code>PPB_ImageData</code> interface contains pointers to several | 108 * The <code>PPB_ImageData</code> interface contains pointers to several |
110 * functions for determining the browser's treatment of image data. | 109 * functions for determining the browser's treatment of image data. |
111 */ | 110 */ |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 * @param[in] image_data A <code>PP_Resource</code> corresponding to image | 203 * @param[in] image_data A <code>PP_Resource</code> corresponding to image |
205 * data. | 204 * data. |
206 */ | 205 */ |
207 void (*Unmap)(PP_Resource image_data); | 206 void (*Unmap)(PP_Resource image_data); |
208 }; | 207 }; |
209 /** | 208 /** |
210 * @} | 209 * @} |
211 */ | 210 */ |
212 | 211 |
213 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ | 212 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ |
OLD | NEW |