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

Side by Side Diff: ppapi/shared_impl/media_stream_video_track_shared.h

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_
6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_
7 7
8 #include <stdint.h>
9
8 #include "ppapi/c/ppb_video_frame.h" 10 #include "ppapi/c/ppb_video_frame.h"
9 #include "ppapi/shared_impl/ppapi_shared_export.h" 11 #include "ppapi/shared_impl/ppapi_shared_export.h"
10 12
11 namespace ppapi { 13 namespace ppapi {
12 14
13 class PPAPI_SHARED_EXPORT MediaStreamVideoTrackShared { 15 class PPAPI_SHARED_EXPORT MediaStreamVideoTrackShared {
14 public: 16 public:
15 struct Attributes { 17 struct Attributes {
16 Attributes() 18 Attributes()
17 : buffers(0), 19 : buffers(0),
18 width(0), 20 width(0),
19 height(0), 21 height(0),
20 format(PP_VIDEOFRAME_FORMAT_UNKNOWN) {} 22 format(PP_VIDEOFRAME_FORMAT_UNKNOWN) {}
21 int32_t buffers; 23 int32_t buffers;
22 int32_t width; 24 int32_t width;
23 int32_t height; 25 int32_t height;
24 PP_VideoFrame_Format format; 26 PP_VideoFrame_Format format;
25 }; 27 };
26 28
27 static bool VerifyAttributes(const Attributes& attributes); 29 static bool VerifyAttributes(const Attributes& attributes);
28 }; 30 };
29 31
30 } // namespace ppapi 32 } // namespace ppapi
31 33
32 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_ 34 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698