OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chromecast/media/cma/backend/video_decoder_default.h" | 5 #include "chromecast/media/cma/backend/video_decoder_default.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "chromecast/public/media/cast_decoder_buffer.h" | 13 #include "chromecast/public/media/cast_decoder_buffer.h" |
14 | 14 |
15 namespace chromecast { | 15 namespace chromecast { |
16 namespace media { | 16 namespace media { |
17 | 17 |
18 VideoDecoderDefault::VideoDecoderDefault() | 18 VideoDecoderDefault::VideoDecoderDefault() |
19 : delegate_(nullptr), | 19 : delegate_(nullptr), |
20 last_push_pts_(std::numeric_limits<int64_t>::min()), | 20 last_push_pts_(std::numeric_limits<int64_t>::min()), |
21 weak_factory_(this) {} | 21 weak_factory_(this) {} |
22 | 22 |
(...skipping 24 matching lines...) Expand all Loading... |
47 bool VideoDecoderDefault::SetConfig(const VideoConfig& config) { | 47 bool VideoDecoderDefault::SetConfig(const VideoConfig& config) { |
48 return true; | 48 return true; |
49 } | 49 } |
50 | 50 |
51 void VideoDecoderDefault::OnEndOfStream() { | 51 void VideoDecoderDefault::OnEndOfStream() { |
52 delegate_->OnEndOfStream(); | 52 delegate_->OnEndOfStream(); |
53 } | 53 } |
54 | 54 |
55 } // namespace media | 55 } // namespace media |
56 } // namespace chromecast | 56 } // namespace chromecast |
OLD | NEW |