| 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/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 Loading... |
| 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 |
| OLD | NEW |