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

Side by Side Diff: ppapi/c/dev/pp_video_dev.h

Issue 11474040: Fix some types at the IPC layer. Sizes should be unsigned. (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/api/dev/pp_video_dev.idl ('k') | ppapi/proxy/ppapi_messages.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 dev/pp_video_dev.idl modified Fri Jul 20 12:22:28 2012. */ 6 /* From dev/pp_video_dev.idl modified Fri Dec 7 15:33:11 2012. */
7 7
8 #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_ 8 #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_
9 #define PPAPI_C_DEV_PP_VIDEO_DEV_H_ 9 #define PPAPI_C_DEV_PP_VIDEO_DEV_H_
10 10
11 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.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 /** 16 /**
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 */ 65 */
66 int32_t id; 66 int32_t id;
67 /** 67 /**
68 * Buffer to hold the bitstream data. Should be allocated using the 68 * Buffer to hold the bitstream data. Should be allocated using the
69 * PPB_Buffer interface for consistent interprocess behaviour. 69 * PPB_Buffer interface for consistent interprocess behaviour.
70 */ 70 */
71 PP_Resource data; 71 PP_Resource data;
72 /** 72 /**
73 * Size of the bitstream contained in buffer (in bytes). 73 * Size of the bitstream contained in buffer (in bytes).
74 */ 74 */
75 int32_t size; 75 uint32_t size;
76 }; 76 };
77 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoBitstreamBuffer_Dev, 12); 77 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoBitstreamBuffer_Dev, 12);
78 78
79 /** 79 /**
80 * Struct for specifying texture-backed picture data. 80 * Struct for specifying texture-backed picture data.
81 */ 81 */
82 struct PP_PictureBuffer_Dev { 82 struct PP_PictureBuffer_Dev {
83 /** 83 /**
84 * Client-specified id for the picture buffer. By using this value client can 84 * Client-specified id for the picture buffer. By using this value client can
85 * keep track of the buffers it has assigned to the video decoder and how they 85 * keep track of the buffers it has assigned to the video decoder and how they
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 */ 144 */
145 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 145 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4
146 } PP_VideoDecodeError_Dev; 146 } PP_VideoDecodeError_Dev;
147 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4); 147 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4);
148 /** 148 /**
149 * @} 149 * @}
150 */ 150 */
151 151
152 #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */ 152 #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */
153 153
OLDNEW
« no previous file with comments | « ppapi/api/dev/pp_video_dev.idl ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698