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

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

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 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
« no previous file with comments | « ppapi/shared_impl/id_assignment.cc ('k') | ppapi/shared_impl/media_stream_buffer_manager.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 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_BUFFER_H_ 5 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_
6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_ 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_
7 7
8 #include "ppapi/c/ppb_audio_buffer.h" 8 #include "ppapi/c/ppb_audio_buffer.h"
9 #include "ppapi/c/ppb_video_frame.h" 9 #include "ppapi/c/ppb_video_frame.h"
10 10
11 namespace ppapi { 11 namespace ppapi {
12 12
13 union MediaStreamBuffer { 13 union MediaStreamBuffer {
14 enum Type { 14 enum Type { TYPE_UNKNOWN = 0, TYPE_AUDIO = 1, TYPE_VIDEO = 2, };
15 TYPE_UNKNOWN = 0,
16 TYPE_AUDIO = 1,
17 TYPE_VIDEO = 2,
18 };
19 15
20 struct Header { 16 struct Header {
21 Type type; 17 Type type;
22 uint32_t size; 18 uint32_t size;
23 }; 19 };
24 20
25 struct Audio { 21 struct Audio {
26 Header header; 22 Header header;
27 PP_TimeDelta timestamp; 23 PP_TimeDelta timestamp;
28 PP_AudioBuffer_SampleRate sample_rate; 24 PP_AudioBuffer_SampleRate sample_rate;
(...skipping 24 matching lines...) Expand all
53 PP_COMPILE_ASSERT_SIZE_IN_BYTES(Video, 40); 49 PP_COMPILE_ASSERT_SIZE_IN_BYTES(Video, 40);
54 50
55 Header header; 51 Header header;
56 Video video; 52 Video video;
57 Audio audio; 53 Audio audio;
58 }; 54 };
59 55
60 } // namespace ppapi 56 } // namespace ppapi
61 57
62 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_ 58 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/id_assignment.cc ('k') | ppapi/shared_impl/media_stream_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698