Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: ppapi/c/ppb_image_data.h

Issue 11419192: Make PPAPI headers compilable with -Wstrict-prototypes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/ppb_core.h ('k') | ppapi/c/ppb_message_loop.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ppapi/c/ppb_core.h ('k') | ppapi/c/ppb_message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698