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

Side by Side Diff: content/browser/media/capture/desktop_capture_device_aura.cc

Issue 1865283003: Revert of Tab/Desktop Capture: Use requests instead of timer-based refreshing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video_refresh_from_sinks
Patch Set: Created 4 years, 8 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
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
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
64 void DesktopCaptureDeviceAura::StopAndDeAllocate() { 60 void DesktopCaptureDeviceAura::StopAndDeAllocate() {
65 core_->StopAndDeAllocate(); 61 core_->StopAndDeAllocate();
66 } 62 }
67 63
68 } // namespace content 64 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698