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

Side by Side Diff: remoting/host/ipc_video_frame_capturer.cc

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "remoting/host/ipc_video_frame_capturer.h" 5 #include "remoting/host/ipc_video_frame_capturer.h"
6 6
7 #include "remoting/capturer/capture_data.h" 7 #include "media/video/capture/screen/mouse_cursor_shape.h"
8 #include "remoting/capturer/mouse_cursor_shape.h" 8 #include "media/video/capture/screen/screen_capture_data.h"
9 #include "remoting/host/desktop_session_proxy.h" 9 #include "remoting/host/desktop_session_proxy.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 IpcVideoFrameCapturer::IpcVideoFrameCapturer( 13 IpcVideoFrameCapturer::IpcVideoFrameCapturer(
14 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) 14 scoped_refptr<DesktopSessionProxy> desktop_session_proxy)
15 : delegate_(NULL), 15 : delegate_(NULL),
16 desktop_session_proxy_(desktop_session_proxy) { 16 desktop_session_proxy_(desktop_session_proxy) {
17 } 17 }
18 18
(...skipping 12 matching lines...) Expand all
31 31
32 void IpcVideoFrameCapturer::InvalidateRegion(const SkRegion& invalid_region) { 32 void IpcVideoFrameCapturer::InvalidateRegion(const SkRegion& invalid_region) {
33 desktop_session_proxy_->InvalidateRegion(invalid_region); 33 desktop_session_proxy_->InvalidateRegion(invalid_region);
34 } 34 }
35 35
36 void IpcVideoFrameCapturer::CaptureFrame() { 36 void IpcVideoFrameCapturer::CaptureFrame() {
37 desktop_session_proxy_->CaptureFrame(); 37 desktop_session_proxy_->CaptureFrame();
38 } 38 }
39 39
40 void IpcVideoFrameCapturer::OnCaptureCompleted( 40 void IpcVideoFrameCapturer::OnCaptureCompleted(
41 scoped_refptr<CaptureData> capture_data) { 41 scoped_refptr<media::ScreenCaptureData> capture_data) {
42 if (delegate_) 42 if (delegate_)
43 delegate_->OnCaptureCompleted(capture_data); 43 delegate_->OnCaptureCompleted(capture_data);
44 } 44 }
45 45
46 void IpcVideoFrameCapturer::OnCursorShapeChanged( 46 void IpcVideoFrameCapturer::OnCursorShapeChanged(
47 scoped_ptr<MouseCursorShape> cursor_shape) { 47 scoped_ptr<media::MouseCursorShape> cursor_shape) {
48 if (delegate_) 48 if (delegate_)
49 delegate_->OnCursorShapeChanged(cursor_shape.Pass()); 49 delegate_->OnCursorShapeChanged(cursor_shape.Pass());
50 } 50 }
51 51
52 } // namespace remoting 52 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698