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

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

Issue 5997003: Change ppapi C++ comment style into C. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/ppapi
Patch Set: First. Created 10 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_graphics_2d.h ('k') | ppapi/c/ppb_instance.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) 2010 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2010 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 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_ 5 #ifndef PPAPI_C_PPB_IMAGE_DATA_H_
6 #define PPAPI_C_PPB_IMAGE_DATA_H_ 6 #define PPAPI_C_PPB_IMAGE_DATA_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_macros.h" 9 #include "ppapi/c/pp_macros.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_size.h" 12 #include "ppapi/c/pp_size.h"
13 #include "ppapi/c/pp_stdint.h" 13 #include "ppapi/c/pp_stdint.h"
14 14
15 typedef enum { 15 typedef enum {
16 PP_IMAGEDATAFORMAT_BGRA_PREMUL, 16 PP_IMAGEDATAFORMAT_BGRA_PREMUL,
17 PP_IMAGEDATAFORMAT_RGBA_PREMUL 17 PP_IMAGEDATAFORMAT_RGBA_PREMUL
18 } PP_ImageDataFormat; 18 } PP_ImageDataFormat;
19 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ImageDataFormat, 4); 19 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ImageDataFormat, 4);
20 20
21 struct PP_ImageDataDesc { 21 struct PP_ImageDataDesc {
22 PP_ImageDataFormat format; 22 PP_ImageDataFormat format;
23 23
24 // Size of the bitmap in pixels. 24 /** Size of the bitmap in pixels. */
25 struct PP_Size size; 25 struct PP_Size size;
26 26
27 // The row width in bytes. This may be different than width * 4 since there 27 /** The row width in bytes. This may be different than width * 4 since there
28 // may be padding at the end of the lines. 28 * may be padding at the end of the lines.
29 */
29 int32_t stride; 30 int32_t stride;
30 }; 31 };
31 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16); 32 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16);
32 33
33 #define PPB_IMAGEDATA_INTERFACE "PPB_ImageData;0.3" 34 #define PPB_IMAGEDATA_INTERFACE "PPB_ImageData;0.3"
34 35
35 /** 36 /**
36 * @file 37 * @file
37 * Defines the API ... 38 * Defines the API ...
38 * 39 *
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 */ 94 */
94 void* (*Map)(PP_Resource image_data); 95 void* (*Map)(PP_Resource image_data);
95 96
96 void (*Unmap)(PP_Resource image_data); 97 void (*Unmap)(PP_Resource image_data);
97 }; 98 };
98 99
99 /** 100 /**
100 * @} 101 * @}
101 * End addtogroup PPB 102 * End addtogroup PPB
102 */ 103 */
103 #endif // PPAPI_C_PPB_IMAGE_DATA_H_ 104 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */
105
OLDNEW
« no previous file with comments | « ppapi/c/ppb_graphics_2d.h ('k') | ppapi/c/ppb_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698