| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_capture_impl.h" | 5 #include "content/renderer/media/video_capture_impl.h" |
| 6 | 6 |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
| 8 #include "content/common/child_process.h" | 8 #include "content/common/child_process.h" |
| 9 #include "content/common/media/video_capture_messages.h" | 9 #include "content/common/media/video_capture_messages.h" |
| 10 | 10 |
| 11 VideoCaptureImpl::DIBBuffer::DIBBuffer( | 11 VideoCaptureImpl::DIBBuffer::DIBBuffer( |
| 12 base::SharedMemory* d, media::VideoCapture::VideoFrameBuffer* ptr) | 12 base::SharedMemory* d, media::VideoCapture::VideoFrameBuffer* ptr) |
| 13 : dib(d), | 13 : dib(d), |
| 14 mapped_memory(ptr) {} | 14 mapped_memory(ptr) {} |
| 15 | 15 |
| 16 VideoCaptureImpl::DIBBuffer::~DIBBuffer() { | 16 VideoCaptureImpl::DIBBuffer::~DIBBuffer() { |
| 17 delete dib; | 17 delete dib; |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 } | 422 } |
| 423 | 423 |
| 424 void VideoCaptureImpl::Send(IPC::Message* message) { | 424 void VideoCaptureImpl::Send(IPC::Message* message) { |
| 425 base::MessageLoopProxy* io_message_loop_proxy = | 425 base::MessageLoopProxy* io_message_loop_proxy = |
| 426 ChildProcess::current()->io_message_loop_proxy(); | 426 ChildProcess::current()->io_message_loop_proxy(); |
| 427 | 427 |
| 428 io_message_loop_proxy->PostTask(FROM_HERE, | 428 io_message_loop_proxy->PostTask(FROM_HERE, |
| 429 NewRunnableMethod(message_filter_.get(), | 429 NewRunnableMethod(message_filter_.get(), |
| 430 &VideoCaptureMessageFilter::Send, message)); | 430 &VideoCaptureMessageFilter::Send, message)); |
| 431 } | 431 } |
| OLD | NEW |