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

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

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
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/base/capture_data.h" 7 #include "remoting/capturer/capture_data.h"
8 #include "remoting/capturer/mouse_cursor_shape.h"
8 #include "remoting/host/desktop_session_proxy.h" 9 #include "remoting/host/desktop_session_proxy.h"
9 #include "remoting/proto/control.pb.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 size_most_recent_(SkISize::Make(0, 0)) { 17 size_most_recent_(SkISize::Make(0, 0)) {
18 } 18 }
19 19
(...skipping 29 matching lines...) Expand all
49 void IpcVideoFrameCapturer::OnCaptureCompleted( 49 void IpcVideoFrameCapturer::OnCaptureCompleted(
50 scoped_refptr<CaptureData> capture_data) { 50 scoped_refptr<CaptureData> capture_data) {
51 if (capture_data) 51 if (capture_data)
52 size_most_recent_ = capture_data->size(); 52 size_most_recent_ = capture_data->size();
53 53
54 if (delegate_) 54 if (delegate_)
55 delegate_->OnCaptureCompleted(capture_data); 55 delegate_->OnCaptureCompleted(capture_data);
56 } 56 }
57 57
58 void IpcVideoFrameCapturer::OnCursorShapeChanged( 58 void IpcVideoFrameCapturer::OnCursorShapeChanged(
59 scoped_ptr<protocol::CursorShapeInfo> cursor_shape) { 59 scoped_ptr<MouseCursorShape> cursor_shape) {
60 if (delegate_) 60 if (delegate_)
61 delegate_->OnCursorShapeChanged(cursor_shape.Pass()); 61 delegate_->OnCursorShapeChanged(cursor_shape.Pass());
62 } 62 }
63 63
64 } // namespace remoting 64 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698