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

Side by Side Diff: media/base/fake_demuxer_stream.cc

Issue 2698713003: Remove enabled/set_enabled from DemuxerStream interface (Closed)
Patch Set: cast_shell build fix Created 3 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 | « media/base/fake_demuxer_stream.h ('k') | media/base/fake_text_track_stream.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "media/base/fake_demuxer_stream.h" 5 #include "media/base/fake_demuxer_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 bool FakeDemuxerStream::SupportsConfigChanges() { 98 bool FakeDemuxerStream::SupportsConfigChanges() {
99 return config_changes_; 99 return config_changes_;
100 } 100 }
101 101
102 VideoRotation FakeDemuxerStream::video_rotation() { 102 VideoRotation FakeDemuxerStream::video_rotation() {
103 return VIDEO_ROTATION_0; 103 return VIDEO_ROTATION_0;
104 } 104 }
105 105
106 bool FakeDemuxerStream::enabled() const {
107 return true;
108 }
109
110 void FakeDemuxerStream::set_enabled(bool enabled, base::TimeDelta timestamp) {
111 NOTIMPLEMENTED();
112 }
113
114 void FakeDemuxerStream::HoldNextRead() { 106 void FakeDemuxerStream::HoldNextRead() {
115 DCHECK(task_runner_->BelongsToCurrentThread()); 107 DCHECK(task_runner_->BelongsToCurrentThread());
116 read_to_hold_ = next_read_num_; 108 read_to_hold_ = next_read_num_;
117 } 109 }
118 110
119 void FakeDemuxerStream::HoldNextConfigChangeRead() { 111 void FakeDemuxerStream::HoldNextConfigChangeRead() {
120 DCHECK(task_runner_->BelongsToCurrentThread()); 112 DCHECK(task_runner_->BelongsToCurrentThread());
121 // Set |read_to_hold_| to be the next config change read. 113 // Set |read_to_hold_| to be the next config change read.
122 read_to_hold_ = next_read_num_ + num_buffers_in_one_config_ - 114 read_to_hold_ = next_read_num_ + num_buffers_in_one_config_ -
123 next_read_num_ % (num_buffers_in_one_config_ + 1); 115 next_read_num_ % (num_buffers_in_one_config_ + 1);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 result.push_back(&fake_video_stream_); 216 result.push_back(&fake_video_stream_);
225 return result; 217 return result;
226 } 218 }
227 219
228 void FakeMediaResource::SetStreamStatusChangeCB( 220 void FakeMediaResource::SetStreamStatusChangeCB(
229 const StreamStatusChangeCB& cb) { 221 const StreamStatusChangeCB& cb) {
230 NOTIMPLEMENTED(); 222 NOTIMPLEMENTED();
231 } 223 }
232 224
233 } // namespace media 225 } // namespace media
OLDNEW
« no previous file with comments | « media/base/fake_demuxer_stream.h ('k') | media/base/fake_text_track_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698