| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/webrtc/webrtc_video_capturer_adapter.h" | 5 #include "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | |
| 9 #include "base/memory/aligned_memory.h" | 8 #include "base/memory/aligned_memory.h" |
| 9 #include "base/trace_event/trace_event.h" |
| 10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
| 11 #include "media/base/video_frame_pool.h" | 11 #include "media/base/video_frame_pool.h" |
| 12 #include "third_party/libjingle/source/talk/media/base/videoframe.h" | 12 #include "third_party/libjingle/source/talk/media/base/videoframe.h" |
| 13 #include "third_party/libjingle/source/talk/media/base/videoframefactory.h" | 13 #include "third_party/libjingle/source/talk/media/base/videoframefactory.h" |
| 14 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideoframe.h" | 14 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideoframe.h" |
| 15 #include "third_party/libyuv/include/libyuv/convert_from.h" | 15 #include "third_party/libyuv/include/libyuv/convert_from.h" |
| 16 #include "third_party/libyuv/include/libyuv/scale.h" | 16 #include "third_party/libyuv/include/libyuv/scale.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 namespace { | 19 namespace { |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 DCHECK(frame_factory_ == frame_factory()); | 396 DCHECK(frame_factory_ == frame_factory()); |
| 397 frame_factory_->SetFrame(frame, elapsed_time); | 397 frame_factory_->SetFrame(frame, elapsed_time); |
| 398 | 398 |
| 399 // This signals to libJingle that a new VideoFrame is available. | 399 // This signals to libJingle that a new VideoFrame is available. |
| 400 SignalFrameCaptured(this, frame_factory_->GetCapturedFrame()); | 400 SignalFrameCaptured(this, frame_factory_->GetCapturedFrame()); |
| 401 | 401 |
| 402 frame_factory_->ReleaseFrame(); // Release the frame ASAP. | 402 frame_factory_->ReleaseFrame(); // Release the frame ASAP. |
| 403 } | 403 } |
| 404 | 404 |
| 405 } // namespace content | 405 } // namespace content |
| OLD | NEW |