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

Unified Diff: remoting/host/video_scheduler.cc

Issue 833693002: Hide the cursor on the client when it is hidden on the host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hides the cursor properly on the client Created 5 years, 11 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
Index: remoting/host/video_scheduler.cc
diff --git a/remoting/host/video_scheduler.cc b/remoting/host/video_scheduler.cc
index 3e54e5a85cbc5b46269f44e38e118cd3633aceb7..b1ba65b5189ae0735a969633d93f4412bf796791 100644
--- a/remoting/host/video_scheduler.cc
+++ b/remoting/host/video_scheduler.cc
@@ -121,8 +121,8 @@ void VideoScheduler::OnMouseCursor(webrtc::MouseCursor* cursor) {
cursor_proto->set_height(cursor->image()->size().height());
cursor_proto->set_hotspot_x(cursor->hotspot().x());
cursor_proto->set_hotspot_y(cursor->hotspot().y());
+ cursor_proto->set_data(std::string());
kelvinp 2015/01/06 02:22:18 Always initializes with empty data. Or else Clien
Sergey Ulanov 2015/01/06 18:52:10 nit: add an empty line above this one and remove i
kelvinp 2015/01/06 22:04:14 Done.
- std::string data;
uint8_t* current_row = cursor->image()->data();
for (int y = 0; y < cursor->image()->size().height(); ++y) {
cursor_proto->mutable_data()->append(

Powered by Google App Engine
This is Rietveld 408576698