OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/filters/fake_video_decoder.h" | 5 #include "media/filters/fake_video_decoder.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/message_loop/message_loop_proxy.h" | |
9 #include "media/base/bind_to_current_loop.h" | 8 #include "media/base/bind_to_current_loop.h" |
10 #include "media/base/test_helpers.h" | 9 #include "media/base/test_helpers.h" |
11 | 10 |
12 namespace media { | 11 namespace media { |
13 | 12 |
14 FakeVideoDecoder::FakeVideoDecoder(int decoding_delay, | 13 FakeVideoDecoder::FakeVideoDecoder(int decoding_delay, |
15 int max_parallel_decoding_requests, | 14 int max_parallel_decoding_requests, |
16 const BytesDecodedCB& bytes_decoded_cb) | 15 const BytesDecodedCB& bytes_decoded_cb) |
17 : decoding_delay_(decoding_delay), | 16 : decoding_delay_(decoding_delay), |
18 max_parallel_decoding_requests_(max_parallel_decoding_requests), | 17 max_parallel_decoding_requests_(max_parallel_decoding_requests), |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 251 |
253 void FakeVideoDecoder::DoReset() { | 252 void FakeVideoDecoder::DoReset() { |
254 DCHECK(thread_checker_.CalledOnValidThread()); | 253 DCHECK(thread_checker_.CalledOnValidThread()); |
255 DCHECK(held_decode_callbacks_.empty()); | 254 DCHECK(held_decode_callbacks_.empty()); |
256 DCHECK(!reset_cb_.IsNull()); | 255 DCHECK(!reset_cb_.IsNull()); |
257 | 256 |
258 reset_cb_.RunOrHold(); | 257 reset_cb_.RunOrHold(); |
259 } | 258 } |
260 | 259 |
261 } // namespace media | 260 } // namespace media |
OLD | NEW |