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

Side by Side Diff: services/media/framework_mojo/mojo_producer.h

Issue 1833323002: Motown: Add ActiveMultistreamSource model in preparation for the ffmpeg demux with async I/O (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: dalesat Created 4 years, 8 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 | « services/media/framework_ffmpeg/ffmpeg_decoder_base.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ 5 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_
6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ 6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_
7 7
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/task_runner.h"
11 #include "mojo/common/binding_set.h" 10 #include "mojo/common/binding_set.h"
12 #include "mojo/services/media/common/interfaces/media_state.mojom.h" 11 #include "mojo/services/media/common/interfaces/media_state.mojom.h"
13 #include "mojo/services/media/common/interfaces/media_transport.mojom.h" 12 #include "mojo/services/media/common/interfaces/media_transport.mojom.h"
14 #include "services/media/framework/models/active_sink.h" 13 #include "services/media/framework/models/active_sink.h"
15 #include "services/media/framework_mojo/mojo_allocator.h" 14 #include "services/media/framework_mojo/mojo_allocator.h"
16 15
17 namespace mojo { 16 namespace mojo {
18 namespace media { 17 namespace media {
19 18
20 // Implements MediaProducer to forward a stream across mojo. 19 // Implements MediaProducer to forward a stream across mojo.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // TODO(dalesat): Base this logic on presentation time or duration. 89 // TODO(dalesat): Base this logic on presentation time or duration.
91 uint32_t max_pushes_outstanding_ = 0; 90 uint32_t max_pushes_outstanding_ = 0;
92 uint32_t current_pushes_outstanding_ = 0; 91 uint32_t current_pushes_outstanding_ = 0;
93 // THE FIELDS ABOVE SHOULD ONLY BE ACCESSED WITH lock_ TAKEN. 92 // THE FIELDS ABOVE SHOULD ONLY BE ACCESSED WITH lock_ TAKEN.
94 }; 93 };
95 94
96 } // namespace media 95 } // namespace media
97 } // namespace mojo 96 } // namespace mojo
98 97
99 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ 98 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_
OLDNEW
« no previous file with comments | « services/media/framework_ffmpeg/ffmpeg_decoder_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698