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 "content/renderer/media/video_track_recorder.h" | 5 #include "content/renderer/media/video_track_recorder.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
9 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
10 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
12 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
13 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
14 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
15 | 16 |
16 extern "C" { | 17 extern "C" { |
17 // VPX_CODEC_DISABLE_COMPAT excludes parts of the libvpx API that provide | 18 // VPX_CODEC_DISABLE_COMPAT excludes parts of the libvpx API that provide |
18 // backwards compatibility for legacy applications using the library. | 19 // backwards compatibility for legacy applications using the library. |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 encoder_->set_paused(false); | 378 encoder_->set_paused(false); |
378 } | 379 } |
379 | 380 |
380 void VideoTrackRecorder::OnVideoFrameForTesting( | 381 void VideoTrackRecorder::OnVideoFrameForTesting( |
381 const scoped_refptr<media::VideoFrame>& frame, | 382 const scoped_refptr<media::VideoFrame>& frame, |
382 base::TimeTicks timestamp) { | 383 base::TimeTicks timestamp) { |
383 encoder_->StartFrameEncode(frame, timestamp); | 384 encoder_->StartFrameEncode(frame, timestamp); |
384 } | 385 } |
385 | 386 |
386 } // namespace content | 387 } // namespace content |
OLD | NEW |