| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/media/capture/desktop_capture_device_aura.h" | 5 #include "content/browser/media/capture/desktop_capture_device_aura.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 new DesktopCaptureDeviceAura(source)); | 50 new DesktopCaptureDeviceAura(source)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 void DesktopCaptureDeviceAura::AllocateAndStart( | 53 void DesktopCaptureDeviceAura::AllocateAndStart( |
| 54 const media::VideoCaptureParams& params, | 54 const media::VideoCaptureParams& params, |
| 55 scoped_ptr<Client> client) { | 55 scoped_ptr<Client> client) { |
| 56 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString(); | 56 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString(); |
| 57 core_->AllocateAndStart(params, std::move(client)); | 57 core_->AllocateAndStart(params, std::move(client)); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void DesktopCaptureDeviceAura::RequestRefreshFrame() { |
| 61 core_->RequestRefreshFrame(); |
| 62 } |
| 63 |
| 60 void DesktopCaptureDeviceAura::StopAndDeAllocate() { | 64 void DesktopCaptureDeviceAura::StopAndDeAllocate() { |
| 61 core_->StopAndDeAllocate(); | 65 core_->StopAndDeAllocate(); |
| 62 } | 66 } |
| 63 | 67 |
| 64 } // namespace content | 68 } // namespace content |
| OLD | NEW |