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

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

Issue 6297018: Removed Doxygen groupings by ppb_, pp_, and ppp_. Added grouping by construct... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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) 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_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_macros.h" 10 #include "ppapi/c/pp_macros.h"
11 #include "ppapi/c/pp_module.h" 11 #include "ppapi/c/pp_module.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/pp_size.h" 13 #include "ppapi/c/pp_size.h"
14 #include "ppapi/c/pp_stdint.h" 14 #include "ppapi/c/pp_stdint.h"
15 15
16 /**
17 * @file
18 * Defines the API ...
19 */
20
21 /**
22 * @addtogroup Enums
23 * @{
24 */
25
16 typedef enum { 26 typedef enum {
17 PP_IMAGEDATAFORMAT_BGRA_PREMUL, 27 PP_IMAGEDATAFORMAT_BGRA_PREMUL,
18 PP_IMAGEDATAFORMAT_RGBA_PREMUL 28 PP_IMAGEDATAFORMAT_RGBA_PREMUL
19 } PP_ImageDataFormat; 29 } PP_ImageDataFormat;
30 /**
31 * @}
32 */
33
20 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ImageDataFormat, 4); 34 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ImageDataFormat, 4);
21 35
36 /**
37 * @addtogroup Structs
38 * @{
39 */
22 struct PP_ImageDataDesc { 40 struct PP_ImageDataDesc {
23 PP_ImageDataFormat format; 41 PP_ImageDataFormat format;
24 42
25 /** Size of the bitmap in pixels. */ 43 /** Size of the bitmap in pixels. */
26 struct PP_Size size; 44 struct PP_Size size;
27 45
28 /** The row width in bytes. This may be different than width * 4 since there 46 /** The row width in bytes. This may be different than width * 4 since there
29 * may be padding at the end of the lines. 47 * may be padding at the end of the lines.
30 */ 48 */
31 int32_t stride; 49 int32_t stride;
32 }; 50 };
51 /**
52 * @}
53 */
54
33 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16); 55 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ImageDataDesc, 16);
34 56
35 #define PPB_IMAGEDATA_INTERFACE "PPB_ImageData;0.3" 57 #define PPB_IMAGEDATA_INTERFACE "PPB_ImageData;0.3"
36 58
37 /** 59 /**
38 * @file 60 * @addtogroup Interfaces
39 * Defines the API ...
40 *
41 * @addtogroup PPB
42 * @{ 61 * @{
43 */ 62 */
44
45 struct PPB_ImageData { 63 struct PPB_ImageData {
46 /** 64 /**
47 * Returns the browser's preferred format for image data. This format will be 65 * Returns the browser's preferred format for image data. This format will be
48 * the format is uses internally for painting. Other formats may require 66 * the format is uses internally for painting. Other formats may require
49 * internal conversions to paint or may have additional restrictions depending 67 * internal conversions to paint or may have additional restrictions depending
50 * on the function. 68 * on the function.
51 */ 69 */
52 PP_ImageDataFormat (*GetNativeImageDataFormat)(); 70 PP_ImageDataFormat (*GetNativeImageDataFormat)();
53 71
54 /** 72 /**
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 struct PP_ImageDataDesc* desc); 108 struct PP_ImageDataDesc* desc);
91 109
92 /** 110 /**
93 * Maps this bitmap into the plugin address space and returns a pointer to the 111 * Maps this bitmap into the plugin address space and returns a pointer to the
94 * beginning of the data. 112 * beginning of the data.
95 */ 113 */
96 void* (*Map)(PP_Resource image_data); 114 void* (*Map)(PP_Resource image_data);
97 115
98 void (*Unmap)(PP_Resource image_data); 116 void (*Unmap)(PP_Resource image_data);
99 }; 117 };
100
101 /** 118 /**
102 * @} 119 * @}
103 * End addtogroup PPB
104 */ 120 */
121
105 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */ 122 #endif /* PPAPI_C_PPB_IMAGE_DATA_H_ */
106 123
OLDNEW
« ppapi/c/ppb_core.h ('K') | « 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