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/browser/renderer_host/media/video_capture_device_client.h" | 5 #include "content/browser/renderer_host/media/video_capture_device_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" | 10 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" |
11 #include "content/browser/renderer_host/media/video_capture_controller.h" | 11 #include "content/browser/renderer_host/media/video_capture_controller.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "media/base/bind_to_current_loop.h" | |
14 #include "media/base/video_capture_types.h" | 13 #include "media/base/video_capture_types.h" |
15 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
16 #include "third_party/libyuv/include/libyuv.h" | 15 #include "third_party/libyuv/include/libyuv.h" |
17 | 16 |
18 using media::VideoCaptureFormat; | 17 using media::VideoCaptureFormat; |
19 using media::VideoFrame; | 18 using media::VideoFrame; |
20 | 19 |
21 namespace content { | 20 namespace content { |
22 | 21 |
23 // Class combining a Client::Buffer interface implementation and a pool buffer | 22 // Class combining a Client::Buffer interface implementation and a pool buffer |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 } | 361 } |
363 | 362 |
364 void VideoCaptureDeviceClient::OnLog( | 363 void VideoCaptureDeviceClient::OnLog( |
365 const std::string& message) { | 364 const std::string& message) { |
366 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, | 365 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
367 base::Bind(&VideoCaptureController::DoLogOnIOThread, | 366 base::Bind(&VideoCaptureController::DoLogOnIOThread, |
368 controller_, message)); | 367 controller_, message)); |
369 } | 368 } |
370 | 369 |
371 } // namespace content | 370 } // namespace content |
OLD | NEW |