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

Unified Diff: remoting/host/ipc_video_frame_capturer.cc

Issue 455073004: Switch DesktopEnvironment to return a DesktopCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ShapedDesktopCapturer::Create() Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.h ('k') | remoting/host/shaped_desktop_capturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_video_frame_capturer.cc
diff --git a/remoting/host/ipc_video_frame_capturer.cc b/remoting/host/ipc_video_frame_capturer.cc
index c56c20e1f9fb0fdc2d36bcb556cfa44f4fa4ac44..7f39a3dc354e7eb8528d0a5193c72f3776624fa1 100644
--- a/remoting/host/ipc_video_frame_capturer.cc
+++ b/remoting/host/ipc_video_frame_capturer.cc
@@ -13,7 +13,6 @@ namespace remoting {
IpcVideoFrameCapturer::IpcVideoFrameCapturer(
scoped_refptr<DesktopSessionProxy> desktop_session_proxy)
: callback_(NULL),
- mouse_shape_observer_(NULL),
desktop_session_proxy_(desktop_session_proxy),
capture_pending_(false),
weak_factory_(this) {
@@ -29,23 +28,6 @@ void IpcVideoFrameCapturer::Start(Callback* callback) {
desktop_session_proxy_->SetVideoCapturer(weak_factory_.GetWeakPtr());
}
-void IpcVideoFrameCapturer::SetMouseShapeObserver(
- MouseShapeObserver* mouse_shape_observer) {
- DCHECK(!mouse_shape_observer_);
- DCHECK(mouse_shape_observer);
- mouse_shape_observer_ = mouse_shape_observer;
-}
-
-bool IpcVideoFrameCapturer::GetScreenList(ScreenList* screens) {
- NOTIMPLEMENTED();
- return false;
-}
-
-bool IpcVideoFrameCapturer::SelectScreen(webrtc::ScreenId id) {
- NOTIMPLEMENTED();
- return false;
-}
-
void IpcVideoFrameCapturer::Capture(const webrtc::DesktopRegion& region) {
DCHECK(!capture_pending_);
capture_pending_ = true;
@@ -59,10 +41,4 @@ void IpcVideoFrameCapturer::OnCaptureCompleted(
callback_->OnCaptureCompleted(frame.release());
}
-void IpcVideoFrameCapturer::OnCursorShapeChanged(
- scoped_ptr<webrtc::MouseCursorShape> cursor_shape) {
- if (mouse_shape_observer_)
- mouse_shape_observer_->OnCursorShapeChanged(cursor_shape.release());
-}
-
} // namespace remoting
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.h ('k') | remoting/host/shaped_desktop_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698