| 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/browser/renderer_host/media/video_capture_controller.h" | 5 #include "content/browser/renderer_host/media/video_capture_controller.h" |
| 6 | 6 |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
| 8 #include "content/browser/browser_thread.h" | 8 #include "content/browser/browser_thread.h" |
| 9 #include "content/browser/renderer_host/media/media_stream_manager.h" | 9 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 10 #include "content/browser/renderer_host/media/video_capture_manager.h" | 10 #include "content/browser/renderer_host/media/video_capture_manager.h" |
| 11 #include "media/base/yuv_convert.h" | 11 #include "media/base/yuv_convert.h" |
| 12 | 12 |
| 13 // The number of TransportDIBs VideoCaptureController allocate. | 13 // The number of TransportDIBs VideoCaptureController allocate. |
| 14 static const size_t kNoOfDIBS = 3; | 14 static const size_t kNoOfDIBS = 3; |
| 15 | 15 |
| 16 VideoCaptureController::VideoCaptureController( | 16 VideoCaptureController::VideoCaptureController( |
| 17 const VideoCaptureControllerID& id, | 17 const VideoCaptureControllerID& id, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 206 } |
| 207 | 207 |
| 208 if (ready_to_delete_now) { | 208 if (ready_to_delete_now) { |
| 209 event_handler_->OnReadyToDelete(id_); | 209 event_handler_->OnReadyToDelete(id_); |
| 210 } | 210 } |
| 211 if (stopped_task) { | 211 if (stopped_task) { |
| 212 stopped_task->Run(); | 212 stopped_task->Run(); |
| 213 delete stopped_task; | 213 delete stopped_task; |
| 214 } | 214 } |
| 215 } | 215 } |
| OLD | NEW |