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: media/base/pipeline_impl.h

Issue 2204673004: WIP - WebMediaPlayer switch media renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some revision. Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 MEDIA_BASE_PIPELINE_IMPL_H_ 5 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_
6 #define MEDIA_BASE_PIPELINE_IMPL_H_ 6 #define MEDIA_BASE_PIPELINE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // |enabledTrackIds| contains track ids of enabled audio tracks. 99 // |enabledTrackIds| contains track ids of enabled audio tracks.
100 void OnEnabledAudioTracksChanged( 100 void OnEnabledAudioTracksChanged(
101 const std::vector<MediaTrack::Id>& enabledTrackIds) override; 101 const std::vector<MediaTrack::Id>& enabledTrackIds) override;
102 102
103 // |trackId| either empty, which means no video track is selected, or contain 103 // |trackId| either empty, which means no video track is selected, or contain
104 // one element - the selected video track id. 104 // one element - the selected video track id.
105 void OnSelectedVideoTrackChanged( 105 void OnSelectedVideoTrackChanged(
106 const std::vector<MediaTrack::Id>& selectedTrackId) override; 106 const std::vector<MediaTrack::Id>& selectedTrackId) override;
107 107
108 // Get current video/audio configure.
109 VideoDecoderConfig GetVideoDecoderConfig() const final;
110 AudioDecoderConfig GetAudioDecoderConfig() const final;
111
108 private: 112 private:
109 friend class MediaLog; 113 friend class MediaLog;
110 class RendererWrapper; 114 class RendererWrapper;
111 115
112 // Pipeline states, as described above. 116 // Pipeline states, as described above.
113 // TODO(alokp): Move this to RendererWrapper after removing the references 117 // TODO(alokp): Move this to RendererWrapper after removing the references
114 // from MediaLog. 118 // from MediaLog.
115 enum State { 119 enum State {
116 kCreated, 120 kCreated,
117 kStarting, 121 kStarting,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 180
177 base::ThreadChecker thread_checker_; 181 base::ThreadChecker thread_checker_;
178 base::WeakPtrFactory<PipelineImpl> weak_factory_; 182 base::WeakPtrFactory<PipelineImpl> weak_factory_;
179 183
180 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); 184 DISALLOW_COPY_AND_ASSIGN(PipelineImpl);
181 }; 185 };
182 186
183 } // namespace media 187 } // namespace media
184 188
185 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ 189 #endif // MEDIA_BASE_PIPELINE_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/pipeline.h ('k') | media/base/pipeline_impl.cc » ('j') | media/base/pipeline_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698