OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 Wed Oct 31 10:35:03 2012. */ | 6 /* From ppb_image_data.idl modified Tue Nov 13 08:48:25 2012. */ |
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 */ | 107 */ |
108 struct PPB_ImageData_1_0 { | 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)(void); |
118 /** | 118 /** |
119 * IsImageDataFormatSupported() determines if the given image data format is | 119 * IsImageDataFormatSupported() determines if the given image data format is |
120 * supported by the browser. Note: <code>PP_IMAGEDATAFORMAT_BGRA_PREMUL</code> | 120 * supported by the browser. Note: <code>PP_IMAGEDATAFORMAT_BGRA_PREMUL</code> |
121 * and <code>PP_IMAGEDATAFORMAT_RGBA_PREMUL</code> formats are always | 121 * and <code>PP_IMAGEDATAFORMAT_RGBA_PREMUL</code> formats are always |
122 * supported. Other image formats do not make this guarantee, and should be | 122 * supported. Other image formats do not make this guarantee, and should be |
123 * checked first with IsImageDataFormatSupported() before using. | 123 * checked first with IsImageDataFormatSupported() before using. |
124 * | 124 * |
125 * @param[in] format The image data format. | 125 * @param[in] format The image data format. |
126 * | 126 * |
127 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given | 127 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 void (*Unmap)(PP_Resource image_data); | 199 void (*Unmap)(PP_Resource image_data); |
200 }; | 200 }; |
201 | 201 |
202 typedef struct PPB_ImageData_1_0 PPB_ImageData; | 202 typedef struct PPB_ImageData_1_0 PPB_ImageData; |
203 /** | 203 /** |
204 * @} | 204 * @} |
205 */ | 205 */ |
206 | 206 |
207 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ | 207 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ |
208 | 208 |
OLD | NEW |