| 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 | 5 |
| 6 /* From ppb_image_data.idl modified Tue Nov 8 15:46:54 2011. */ | 6 /* From ppb_image_data.idl modified Wed Dec 21 19:08:34 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_ | 8 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_ |
| 9 #define PPAPI_C_PPB_IMAGE_DATA_H_ | 9 #define PPAPI_C_PPB_IMAGE_DATA_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 15 #include "ppapi/c/pp_size.h" | 15 #include "ppapi/c/pp_size.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 */ | 98 */ |
| 99 | 99 |
| 100 /** | 100 /** |
| 101 * @addtogroup Interfaces | 101 * @addtogroup Interfaces |
| 102 * @{ | 102 * @{ |
| 103 */ | 103 */ |
| 104 /** | 104 /** |
| 105 * The <code>PPB_ImageData</code> interface contains pointers to several | 105 * The <code>PPB_ImageData</code> interface contains pointers to several |
| 106 * functions for determining the browser's treatment of image data. | 106 * functions for determining the browser's treatment of image data. |
| 107 */ | 107 */ |
| 108 struct PPB_ImageData { | 108 struct PPB_ImageData_1_0 { |
| 109 /** | 109 /** |
| 110 * GetNativeImageDataFormat() returns the browser's preferred format for | 110 * GetNativeImageDataFormat() returns the browser's preferred format for |
| 111 * image data. The browser uses this format internally for painting. Other | 111 * image data. The browser uses this format internally for painting. Other |
| 112 * formats may require internal conversions to paint or may have additional | 112 * formats may require internal conversions to paint or may have additional |
| 113 * restrictions depending on the function. | 113 * restrictions depending on the function. |
| 114 * | 114 * |
| 115 * @return A <code>PP_ImageDataFormat</code> containing the preferred format. | 115 * @return A <code>PP_ImageDataFormat</code> containing the preferred format. |
| 116 */ | 116 */ |
| 117 PP_ImageDataFormat (*GetNativeImageDataFormat)(); | 117 PP_ImageDataFormat (*GetNativeImageDataFormat)(); |
| 118 /** | 118 /** |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void* (*Map)(PP_Resource image_data); | 188 void* (*Map)(PP_Resource image_data); |
| 189 /** | 189 /** |
| 190 * Unmap is a pointer to a function that unmaps an image data from the module | 190 * Unmap is a pointer to a function that unmaps an image data from the module |
| 191 * address space. | 191 * address space. |
| 192 * | 192 * |
| 193 * @param[in] image_data A <code>PP_Resource</code> corresponding to image | 193 * @param[in] image_data A <code>PP_Resource</code> corresponding to image |
| 194 * data. | 194 * data. |
| 195 */ | 195 */ |
| 196 void (*Unmap)(PP_Resource image_data); | 196 void (*Unmap)(PP_Resource image_data); |
| 197 }; | 197 }; |
| 198 |
| 199 typedef struct PPB_ImageData_1_0 PPB_ImageData; |
| 198 /** | 200 /** |
| 199 * @} | 201 * @} |
| 200 */ | 202 */ |
| 201 | 203 |
| 202 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ | 204 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ |
| 203 | 205 |
| OLD | NEW |