| OLD | NEW |
| 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/host/desktop_session_proxy.h" | 8 #include "remoting/host/desktop_session_proxy.h" |
| 9 #include "remoting/proto/control.pb.h" | |
| 10 | 9 |
| 11 namespace remoting { | 10 namespace remoting { |
| 12 | 11 |
| 13 IpcVideoFrameCapturer::IpcVideoFrameCapturer( | 12 IpcVideoFrameCapturer::IpcVideoFrameCapturer( |
| 14 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) | 13 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) |
| 15 : delegate_(NULL), | 14 : delegate_(NULL), |
| 16 desktop_session_proxy_(desktop_session_proxy), | 15 desktop_session_proxy_(desktop_session_proxy), |
| 17 size_most_recent_(SkISize::Make(0, 0)) { | 16 size_most_recent_(SkISize::Make(0, 0)) { |
| 18 } | 17 } |
| 19 | 18 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 49 void IpcVideoFrameCapturer::OnCaptureCompleted( | 48 void IpcVideoFrameCapturer::OnCaptureCompleted( |
| 50 scoped_refptr<CaptureData> capture_data) { | 49 scoped_refptr<CaptureData> capture_data) { |
| 51 if (capture_data) | 50 if (capture_data) |
| 52 size_most_recent_ = capture_data->size(); | 51 size_most_recent_ = capture_data->size(); |
| 53 | 52 |
| 54 if (delegate_) | 53 if (delegate_) |
| 55 delegate_->OnCaptureCompleted(capture_data); | 54 delegate_->OnCaptureCompleted(capture_data); |
| 56 } | 55 } |
| 57 | 56 |
| 58 void IpcVideoFrameCapturer::OnCursorShapeChanged( | 57 void IpcVideoFrameCapturer::OnCursorShapeChanged( |
| 59 scoped_ptr<protocol::CursorShapeInfo> cursor_shape) { | 58 const MouseCursorShape& cursor_shape) { |
| 60 if (delegate_) | 59 if (delegate_) |
| 61 delegate_->OnCursorShapeChanged(cursor_shape.Pass()); | 60 delegate_->OnCursorShapeChanged(cursor_shape); |
| 62 } | 61 } |
| 63 | 62 |
| 64 } // namespace remoting | 63 } // namespace remoting |
| OLD | NEW |