Index: remoting/host/desktop_session_agent.cc |
diff --git a/remoting/host/desktop_session_agent.cc b/remoting/host/desktop_session_agent.cc |
index 53dacedbeb4ec7c06d594c11b1dfe5c1a1592004..00c623b1e25c9e15e95a4244a0cdd122614eec38 100644 |
--- a/remoting/host/desktop_session_agent.cc |
+++ b/remoting/host/desktop_session_agent.cc |
@@ -9,9 +9,9 @@ |
#include "ipc/ipc_message.h" |
#include "ipc/ipc_message_macros.h" |
#include "remoting/base/auto_thread_task_runner.h" |
-#include "remoting/base/capture_data.h" |
#include "remoting/base/constants.h" |
#include "remoting/base/util.h" |
+#include "remoting/capturer/capture_data.h" |
#include "remoting/host/chromoting_messages.h" |
#include "remoting/host/event_executor.h" |
#include "remoting/proto/control.pb.h" |
@@ -164,18 +164,11 @@ void DesktopSessionAgent::OnCaptureCompleted( |
} |
void DesktopSessionAgent::OnCursorShapeChanged( |
- scoped_ptr<protocol::CursorShapeInfo> cursor_shape) { |
+ const MouseCursorShape& cursor_shape) { |
DCHECK(video_capture_task_runner()->BelongsToCurrentThread()); |
- // Serialize |cursor_shape| to a string. |
- std::string serialized_cursor_shape; |
- if (!cursor_shape->SerializeToString(&serialized_cursor_shape)) { |
- LOG(ERROR) << "Failed to serialize protocol::CursorShapeInfo."; |
- return; |
- } |
- |
SendToNetwork(new ChromotingDesktopNetworkMsg_CursorShapeChanged( |
- serialized_cursor_shape)); |
+ cursor_shape)); |
} |
void DesktopSessionAgent::InjectClipboardEvent( |