OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "media/screen_capture/android/screen_capture_device_android.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "media/screen_capture/android/screen_capture_machine_android.h" |
| 9 |
| 10 namespace media { |
| 11 |
| 12 ScreenCaptureDeviceAndroid::ScreenCaptureDeviceAndroid() { |
| 13 ScreenCaptureMachineAndroid* machine = new ScreenCaptureMachineAndroid(); |
| 14 core_.reset( |
| 15 new content::ContentVideoCaptureDeviceCore(make_scoped_ptr(machine))); |
| 16 } |
| 17 |
| 18 ScreenCaptureDeviceAndroid::~ScreenCaptureDeviceAndroid() { |
| 19 DVLOG(2) << "ScreenCaptureDeviceAndroid@" << this << " destroying."; |
| 20 } |
| 21 |
| 22 void ScreenCaptureDeviceAndroid::AllocateAndStart( |
| 23 const media::VideoCaptureParams& params, |
| 24 scoped_ptr<Client> client) { |
| 25 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString(); |
| 26 core_->AllocateAndStart(params, client.Pass()); |
| 27 } |
| 28 |
| 29 void ScreenCaptureDeviceAndroid::StopAndDeAllocate() { |
| 30 core_->StopAndDeAllocate(); |
| 31 } |
| 32 |
| 33 } // namespace content |
OLD | NEW |