OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/filters/decrypting_demuxer_stream.h" | 5 #include "media/filters/decrypting_demuxer_stream.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 | 159 |
160 void DecryptingDemuxerStream::EnableBitstreamConverter() { | 160 void DecryptingDemuxerStream::EnableBitstreamConverter() { |
161 demuxer_stream_->EnableBitstreamConverter(); | 161 demuxer_stream_->EnableBitstreamConverter(); |
162 } | 162 } |
163 | 163 |
164 bool DecryptingDemuxerStream::SupportsConfigChanges() { | 164 bool DecryptingDemuxerStream::SupportsConfigChanges() { |
165 return demuxer_stream_->SupportsConfigChanges(); | 165 return demuxer_stream_->SupportsConfigChanges(); |
166 } | 166 } |
167 | 167 |
| 168 VideoRotation DecryptingDemuxerStream::video_rotation() { |
| 169 return VIDEO_ROTATION_0; |
| 170 } |
| 171 |
| 172 void DecryptingDemuxerStream::set_video_rotation(VideoRotation video_rotation) { |
| 173 } |
| 174 |
168 DecryptingDemuxerStream::~DecryptingDemuxerStream() { | 175 DecryptingDemuxerStream::~DecryptingDemuxerStream() { |
169 DVLOG(2) << __FUNCTION__ << " : state_ = " << state_; | 176 DVLOG(2) << __FUNCTION__ << " : state_ = " << state_; |
170 } | 177 } |
171 | 178 |
172 void DecryptingDemuxerStream::SetDecryptor(Decryptor* decryptor) { | 179 void DecryptingDemuxerStream::SetDecryptor(Decryptor* decryptor) { |
173 DVLOG(2) << __FUNCTION__; | 180 DVLOG(2) << __FUNCTION__; |
174 DCHECK(task_runner_->BelongsToCurrentThread()); | 181 DCHECK(task_runner_->BelongsToCurrentThread()); |
175 DCHECK_EQ(state_, kDecryptorRequested) << state_; | 182 DCHECK_EQ(state_, kDecryptorRequested) << state_; |
176 DCHECK(!init_cb_.is_null()); | 183 DCHECK(!init_cb_.is_null()); |
177 DCHECK(!set_decryptor_ready_cb_.is_null()); | 184 DCHECK(!set_decryptor_ready_cb_.is_null()); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 break; | 397 break; |
391 } | 398 } |
392 | 399 |
393 default: | 400 default: |
394 NOTREACHED(); | 401 NOTREACHED(); |
395 return; | 402 return; |
396 } | 403 } |
397 } | 404 } |
398 | 405 |
399 } // namespace media | 406 } // namespace media |
OLD | NEW |