Index: remoting/host/video_scheduler.cc |
diff --git a/remoting/host/video_scheduler.cc b/remoting/host/video_scheduler.cc |
index f7db4c2826d8127d80592626bb57d59bbb3a44cf..f051363b9cd9041dd3b2a1ad02c88c76bed50de5 100644 |
--- a/remoting/host/video_scheduler.cc |
+++ b/remoting/host/video_scheduler.cc |
@@ -14,16 +14,16 @@ |
#include "base/stl_util.h" |
#include "base/sys_info.h" |
#include "base/time.h" |
-#include "media/video/capture/screen/mouse_cursor_shape.h" |
-#include "media/video/capture/screen/screen_capturer.h" |
#include "remoting/proto/control.pb.h" |
#include "remoting/proto/internal.pb.h" |
#include "remoting/proto/video.pb.h" |
#include "remoting/protocol/cursor_shape_stub.h" |
#include "remoting/protocol/message_decoder.h" |
-#include "remoting/protocol/video_stub.h" |
#include "remoting/protocol/util.h" |
+#include "remoting/protocol/video_stub.h" |
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
+#include "third_party/webrtc/modules/desktop_capture/mouse_cursor_shape.h" |
+#include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" |
namespace remoting { |
@@ -35,7 +35,7 @@ VideoScheduler::VideoScheduler( |
scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, |
scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner, |
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
- scoped_ptr<media::ScreenCapturer> capturer, |
+ scoped_ptr<webrtc::ScreenCapturer> capturer, |
scoped_ptr<VideoEncoder> encoder, |
protocol::CursorShapeStub* cursor_stub, |
protocol::VideoStub* video_stub) |
@@ -88,9 +88,11 @@ void VideoScheduler::OnCaptureCompleted(webrtc::DesktopFrame* frame) { |
} |
void VideoScheduler::OnCursorShapeChanged( |
- scoped_ptr<media::MouseCursorShape> cursor_shape) { |
+ webrtc::MouseCursorShape* cursor_shape) { |
DCHECK(capture_task_runner_->BelongsToCurrentThread()); |
+ scoped_ptr<webrtc::MouseCursorShape> owned_cursor(cursor_shape); |
+ |
// Do nothing if the scheduler is being stopped. |
if (!capturer_) |
return; |