OLD | NEW |
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 * This value represents the row width in bytes. This may be different than | 65 * This value represents the row width in bytes. This may be different than |
66 * width * 4 since there may be padding at the end of the lines. | 66 * width * 4 since there may be padding at the end of the lines. |
67 */ | 67 */ |
68 int32_t stride; | 68 int32_t stride; |
69 }; | 69 }; |
70 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16); | 70 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16); |
71 /** | 71 /** |
72 * @} | 72 * @} |
73 */ | 73 */ |
74 | 74 |
75 #define PPB_IMAGEDATA_INTERFACE "PPB_ImageData;0.3" | 75 #define PPB_IMAGEDATA_INTERFACE_0_3 "PPB_ImageData;0.3" |
| 76 #define PPB_IMAGEDATA_INTERFACE PPB_IMAGEDATA_INTERFACE_0_3 |
76 | 77 |
77 /** | 78 /** |
78 * @addtogroup Interfaces | 79 * @addtogroup Interfaces |
79 * @{ | 80 * @{ |
80 */ | 81 */ |
81 | 82 |
82 /** | 83 /** |
83 * The PPB_ImageData interface contains pointers to several functions for | 84 * The PPB_ImageData interface contains pointers to several functions for |
84 * determining the browser's treatment of image data. | 85 * determining the browser's treatment of image data. |
85 */ | 86 */ |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 * | 169 * |
169 * @param[in] image_data A PP_Resource corresponding to image data. | 170 * @param[in] image_data A PP_Resource corresponding to image data. |
170 */ | 171 */ |
171 void (*Unmap)(PP_Resource image_data); | 172 void (*Unmap)(PP_Resource image_data); |
172 }; | 173 }; |
173 /** | 174 /** |
174 * @} | 175 * @} |
175 */ | 176 */ |
176 | 177 |
177 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ | 178 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ |
OLD | NEW |