Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: media/screen_capture/android/screen_capture_device_android.cc

Issue 1140113002: Implement screen capture for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ScreenCaptureMachineAndroid which inherited from content::VideoCaptureMachine Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698