OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |