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

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

Issue 7701004: Fixed spelling errors and changed all references to PP_Resource to be the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months 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
OLDNEW
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 Mon Aug 15 11:01:06 2011. */ 6 /* From ppb_image_data.idl modified Tue Aug 23 11:15:04 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 * image data format is supported by the browser. 126 * image data format is supported by the browser.
127 */ 127 */
128 PP_Bool (*IsImageDataFormatSupported)(PP_ImageDataFormat format); 128 PP_Bool (*IsImageDataFormatSupported)(PP_ImageDataFormat format);
129 /** 129 /**
130 * Create() allocates an image data resource with the given format and size. 130 * Create() allocates an image data resource with the given format and size.
131 * 131 *
132 * For security reasons, if uninitialized, the bitmap will not contain random 132 * For security reasons, if uninitialized, the bitmap will not contain random
133 * memory, but may contain data from a previous image produced by the same 133 * memory, but may contain data from a previous image produced by the same
134 * module if the bitmap was cached and re-used. 134 * module if the bitmap was cached and re-used.
135 * 135 *
136 * @param[in] instance A <code>PP_Instance</code> indentifying one instance 136 * @param[in] instance A <code>PP_Instance</code> identifying one instance
137 * of a module. 137 * of a module.
138 * @param[in] format The desired image data format. 138 * @param[in] format The desired image data format.
139 * @param[in] size A pointer to a <code>PP_Size</code> containing the image 139 * @param[in] size A pointer to a <code>PP_Size</code> containing the image
140 * size. 140 * size.
141 * @param[in] init_to_zero A <code>PP_Bool</code> to determine transparency 141 * @param[in] init_to_zero A <code>PP_Bool</code> to determine transparency
142 * at creation. 142 * at creation.
143 * Set the <code>init_to_zero</code> flag if you want the bitmap initialized 143 * Set the <code>init_to_zero</code> flag if you want the bitmap initialized
144 * to transparent during the creation process. If this flag is not set, the 144 * to transparent during the creation process. If this flag is not set, the
145 * current contents of the bitmap will be undefined, and the module should 145 * current contents of the bitmap will be undefined, and the module should
146 * be sure to set all the pixels. 146 * be sure to set all the pixels.
147 * 147 *
148 * @return A <code>PP_Resource</code> with a nonzero ID on succes or zero on 148 * @return A <code>PP_Resource</code> with a nonzero ID on success or zero on
149 * failure. Failure means the instance, image size, or format was invalid. 149 * failure. Failure means the instance, image size, or format was invalid.
150 */ 150 */
151 PP_Resource (*Create)(PP_Instance instance, 151 PP_Resource (*Create)(PP_Instance instance,
152 PP_ImageDataFormat format, 152 PP_ImageDataFormat format,
153 const struct PP_Size* size, 153 const struct PP_Size* size,
154 PP_Bool init_to_zero); 154 PP_Bool init_to_zero);
155 /** 155 /**
156 * IsImageData() determiens if a given resource is image data. 156 * IsImageData() determiens if a given resource is image data.
157 * 157 *
158 * @param[in] image_data A <code>PP_Resource</code> corresponding to image 158 * @param[in] image_data A <code>PP_Resource</code> corresponding to image
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 * data. 195 * data.
196 */ 196 */
197 void (*Unmap)(PP_Resource image_data); 197 void (*Unmap)(PP_Resource image_data);
198 }; 198 };
199 /** 199 /**
200 * @} 200 * @}
201 */ 201 */
202 202
203 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ 203 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */
204 204
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698