| 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/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/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "media/base/bind_to_loop.h" | 11 #include "media/base/bind_to_loop.h" |
| 12 #include "media/base/demuxer_stream.h" | 12 #include "media/base/demuxer_stream.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 FakeVideoDecoder::FakeVideoDecoder(int decoding_delay) | 16 FakeVideoDecoder::FakeVideoDecoder(int decoding_delay) |
| 17 : message_loop_(base::MessageLoopProxy::current()), | 17 : message_loop_(base::MessageLoopProxy::current()), |
| 18 weak_factory_(this), | 18 weak_factory_(this), |
| 19 decoding_delay_(decoding_delay), | 19 decoding_delay_(decoding_delay), |
| 20 state_(UNINITIALIZED), | 20 state_(UNINITIALIZED), |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 DCHECK(reset_cb_.IsNull()); | 230 DCHECK(reset_cb_.IsNull()); |
| 231 DCHECK(!stop_cb_.IsNull()); | 231 DCHECK(!stop_cb_.IsNull()); |
| 232 | 232 |
| 233 state_ = UNINITIALIZED; | 233 state_ = UNINITIALIZED; |
| 234 demuxer_stream_ = NULL; | 234 demuxer_stream_ = NULL; |
| 235 decoded_frames_.clear(); | 235 decoded_frames_.clear(); |
| 236 stop_cb_.RunOrHold(); | 236 stop_cb_.RunOrHold(); |
| 237 } | 237 } |
| 238 | 238 |
| 239 } // namespace media | 239 } // namespace media |
| OLD | NEW |