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

Side by Side Diff: ppapi/api/ppb_image_data.idl

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, 3 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
« no previous file with comments | « ppapi/api/ppb_file_system.idl ('k') | ppapi/api/ppb_input_event.idl » ('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) 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 /** 6 /**
7 * This file defines the <code>PPB_ImageData</code> struct for determining how 7 * This file defines the <code>PPB_ImageData</code> struct for determining how
8 * a browser handles image data. 8 * a browser handles image data.
9 */ 9 */
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 PP_Bool IsImageDataFormatSupported( 99 PP_Bool IsImageDataFormatSupported(
100 [in] PP_ImageDataFormat format); 100 [in] PP_ImageDataFormat format);
101 101
102 /** 102 /**
103 * Create() allocates an image data resource with the given format and size. 103 * Create() allocates an image data resource with the given format and size.
104 * 104 *
105 * For security reasons, if uninitialized, the bitmap will not contain random 105 * For security reasons, if uninitialized, the bitmap will not contain random
106 * memory, but may contain data from a previous image produced by the same 106 * memory, but may contain data from a previous image produced by the same
107 * module if the bitmap was cached and re-used. 107 * module if the bitmap was cached and re-used.
108 * 108 *
109 * @param[in] instance A <code>PP_Instance</code> indentifying one instance 109 * @param[in] instance A <code>PP_Instance</code> identifying one instance
110 * of a module. 110 * of a module.
111 * @param[in] format The desired image data format. 111 * @param[in] format The desired image data format.
112 * @param[in] size A pointer to a <code>PP_Size</code> containing the image 112 * @param[in] size A pointer to a <code>PP_Size</code> containing the image
113 * size. 113 * size.
114 * @param[in] init_to_zero A <code>PP_Bool</code> to determine transparency 114 * @param[in] init_to_zero A <code>PP_Bool</code> to determine transparency
115 * at creation. 115 * at creation.
116 * Set the <code>init_to_zero</code> flag if you want the bitmap initialized 116 * Set the <code>init_to_zero</code> flag if you want the bitmap initialized
117 * to transparent during the creation process. If this flag is not set, the 117 * to transparent during the creation process. If this flag is not set, the
118 * current contents of the bitmap will be undefined, and the module should 118 * current contents of the bitmap will be undefined, and the module should
119 * be sure to set all the pixels. 119 * be sure to set all the pixels.
120 * 120 *
121 * @return A <code>PP_Resource</code> with a nonzero ID on succes or zero on 121 * @return A <code>PP_Resource</code> with a nonzero ID on success or zero on
122 * failure. Failure means the instance, image size, or format was invalid. 122 * failure. Failure means the instance, image size, or format was invalid.
123 */ 123 */
124 PP_Resource Create( 124 PP_Resource Create(
125 [in] PP_Instance instance, 125 [in] PP_Instance instance,
126 [in] PP_ImageDataFormat format, 126 [in] PP_ImageDataFormat format,
127 [in] PP_Size size, 127 [in] PP_Size size,
128 [in] PP_Bool init_to_zero); 128 [in] PP_Bool init_to_zero);
129 129
130 /** 130 /**
131 * IsImageData() determiens if a given resource is image data. 131 * IsImageData() determiens if a given resource is image data.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 * Unmap is a pointer to a function that unmaps an image data from the module 173 * Unmap is a pointer to a function that unmaps an image data from the module
174 * address space. 174 * address space.
175 * 175 *
176 * @param[in] image_data A <code>PP_Resource</code> corresponding to image 176 * @param[in] image_data A <code>PP_Resource</code> corresponding to image
177 * data. 177 * data.
178 */ 178 */
179 void Unmap( 179 void Unmap(
180 [in] PP_Resource image_data); 180 [in] PP_Resource image_data);
181 }; 181 };
182 182
OLDNEW
« no previous file with comments | « ppapi/api/ppb_file_system.idl ('k') | ppapi/api/ppb_input_event.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698