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

Issue 92473002: Use webrtc::MouseCursorMonitor for cursor shapes (Closed)

Created:
7 years ago by dcaiafa
Modified:
6 years, 4 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Use webrtc::MouseCursorMonitor for cursor shapes Use webrtc::MouseCursorMonitor for cursor shapes instead of webrtc::VideoFrameCapturer, in preparation for deprecating cursor shape functionality in the latter. Fix memory corruption in VideoSchedulerTests_StartAndStop, where a lingering capture task could trigger a expectation action declared on the stack during tear down. My changes to the test somehow made the race condition more likely. BUG=324033 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247689 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248045 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288226

Patch Set 1 #

Patch Set 2 : Added a comment. #

Total comments: 14

Patch Set 3 : Using ParamTraits to serialize webrtc::MouseCursor. #

Patch Set 4 : Updated Me2MeDesktopEnvironment to use shared options. #

Total comments: 7

Patch Set 5 : Misc. review related changes. #

Total comments: 4

Patch Set 6 : Use mutable MouseCursor; remove IPC scoped_ptr hack. #

Patch Set 7 : Removed obsolete #include. #

Total comments: 3

Patch Set 8 : Fix Mac unittest build break #

Patch Set 9 : Fix build break in Mac unittests #

Patch Set 10 : Fixed linux build break. #

Total comments: 2

Patch Set 11 : Remove missing js file from test. Fix mac unittests. #

Patch Set 12 : Fix Release build break #

Patch Set 13 : Merge latest changes. #

Patch Set 14 : Rebase, fix VideoSchedulerTests memory corruption #

Patch Set 15 : Fix linux build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+619 lines, -91 lines) Patch
M remoting/host/basic_desktop_environment.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +19 lines, -0 lines 0 comments Download
M remoting/host/basic_desktop_environment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +16 lines, -2 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +10 lines, -0 lines 0 comments Download
M remoting/host/chromoting_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -8 lines 0 comments Download
M remoting/host/chromoting_param_traits.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M remoting/host/chromoting_param_traits.cc View 1 2 3 4 5 2 chunks +67 lines, -0 lines 0 comments Download
M remoting/host/client_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/client_session_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +12 lines, -0 lines 0 comments Download
M remoting/host/desktop_environment.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M remoting/host/desktop_session_agent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +16 lines, -8 lines 0 comments Download
M remoting/host/desktop_session_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +27 lines, -11 lines 0 comments Download
M remoting/host/desktop_session_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +20 lines, -5 lines 0 comments Download
M remoting/host/desktop_session_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +26 lines, -10 lines 0 comments Download
M remoting/host/fake_desktop_environment.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M remoting/host/fake_desktop_environment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
A remoting/host/fake_mouse_cursor_monitor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +28 lines, -0 lines 0 comments Download
A remoting/host/fake_mouse_cursor_monitor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +49 lines, -0 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +16 lines, -0 lines 0 comments Download
M remoting/host/host_mock_objects.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -0 lines 0 comments Download
M remoting/host/ipc_desktop_environment.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/host/ipc_desktop_environment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/ipc_desktop_environment_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +14 lines, -0 lines 0 comments Download
A remoting/host/ipc_mouse_cursor_monitor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +48 lines, -0 lines 0 comments Download
A remoting/host/ipc_mouse_cursor_monitor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +42 lines, -0 lines 0 comments Download
M remoting/host/ipc_video_frame_capturer.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M remoting/host/me2me_desktop_environment.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M remoting/host/me2me_desktop_environment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -10 lines 0 comments Download
M remoting/host/video_scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +12 lines, -4 lines 0 comments Download
M remoting/host/video_scheduler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +36 lines, -11 lines 0 comments Download
M remoting/host/video_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +116 lines, -17 lines 0 comments Download
M remoting/remoting_host.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
Sergey Ulanov
is this ready for review?
7 years ago (2013-12-03 02:01:25 UTC) #1
dcaiafa
Yeah. Sorry, I thought I had published it already.
7 years ago (2013-12-03 21:02:03 UTC) #2
Sergey Ulanov
Looks mostly good. I have suggestions about cursor object serialization. https://codereview.chromium.org/92473002/diff/20001/remoting/host/basic_desktop_environment.cc File remoting/host/basic_desktop_environment.cc (right): https://codereview.chromium.org/92473002/diff/20001/remoting/host/basic_desktop_environment.cc#newcode46 ...
7 years ago (2013-12-03 21:47:28 UTC) #3
dcaiafa
ptal https://codereview.chromium.org/92473002/diff/20001/remoting/host/basic_desktop_environment.cc File remoting/host/basic_desktop_environment.cc (right): https://codereview.chromium.org/92473002/diff/20001/remoting/host/basic_desktop_environment.cc#newcode46 remoting/host/basic_desktop_environment.cc:46: webrtc::DesktopCaptureOptions::CreateDefault())); On 2013/12/03 21:47:28, Sergey Ulanov wrote: > ...
7 years ago (2013-12-10 01:32:03 UTC) #4
Sergey Ulanov
lgtm https://codereview.chromium.org/92473002/diff/60001/remoting/host/chromoting_param_traits.cc File remoting/host/chromoting_param_traits.cc (right): https://codereview.chromium.org/92473002/diff/60001/remoting/host/chromoting_param_traits.cc#newcode95 remoting/host/chromoting_param_traits.cc:95: CHECK(p.get()); Why do you need this CHECK()? https://codereview.chromium.org/92473002/diff/60001/remoting/host/chromoting_param_traits.cc#newcode123 ...
7 years ago (2013-12-10 03:09:34 UTC) #5
dcaiafa
Adding cdn@ for chromoting_messages.* rubber stamp. Cris, please take a look at chromoting_param_traits.* as well. ...
7 years ago (2013-12-10 23:07:36 UTC) #6
Sergey Ulanov
https://codereview.chromium.org/92473002/diff/60001/remoting/host/chromoting_param_traits.cc File remoting/host/chromoting_param_traits.cc (right): https://codereview.chromium.org/92473002/diff/60001/remoting/host/chromoting_param_traits.cc#newcode95 remoting/host/chromoting_param_traits.cc:95: CHECK(p.get()); On 2013/12/10 23:07:36, dcaiafa wrote: > Because the ...
7 years ago (2013-12-11 00:55:58 UTC) #7
Cris Neckar
https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc File remoting/host/chromoting_param_traits.cc (right): https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc#newcode92 remoting/host/chromoting_param_traits.cc:92: void ParamTraits<scoped_ptr<webrtc::MouseCursor>>::Write( This just reads as strange. I would ...
7 years ago (2013-12-11 20:59:39 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc File remoting/host/chromoting_param_traits.cc (right): https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc#newcode92 remoting/host/chromoting_param_traits.cc:92: void ParamTraits<scoped_ptr<webrtc::MouseCursor>>::Write( On 2013/12/11 20:59:40, Cris Neckar wrote: > ...
7 years ago (2013-12-11 21:16:36 UTC) #9
Cris Neckar
On 2013/12/11 21:16:36, Sergey Ulanov wrote: > https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc > File remoting/host/chromoting_param_traits.cc (right): > > https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc#newcode92 ...
7 years ago (2013-12-11 21:32:49 UTC) #10
Cris Neckar
https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc File remoting/host/chromoting_param_traits.cc (right): https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc#newcode92 remoting/host/chromoting_param_traits.cc:92: void ParamTraits<scoped_ptr<webrtc::MouseCursor>>::Write( On 2013/12/11 21:16:37, Sergey Ulanov wrote: > ...
7 years ago (2013-12-11 21:47:12 UTC) #11
Sergey Ulanov
My change for webrtc::MouseCursor has been rolled to chromium, so you can remove scoped_ptr<> from ...
6 years, 11 months ago (2014-01-23 07:23:35 UTC) #12
dcaiafa
cdn@, please take another look. We removed the scoped_ptr hack in chromoting_messages.* and chromoting_param_traits.*. https://codereview.chromium.org/92473002/diff/80001/remoting/host/chromoting_param_traits.cc ...
6 years, 11 months ago (2014-01-23 19:15:38 UTC) #13
Cris Neckar
LGTM for IPC changes with 1 nit https://codereview.chromium.org/92473002/diff/140001/remoting/host/chromoting_param_traits.cc File remoting/host/chromoting_param_traits.cc (right): https://codereview.chromium.org/92473002/diff/140001/remoting/host/chromoting_param_traits.cc#newcode136 remoting/host/chromoting_param_traits.cc:136: return false; ...
6 years, 11 months ago (2014-01-23 20:16:31 UTC) #14
Wez
https://codereview.chromium.org/92473002/diff/140001/remoting/host/chromoting_param_traits.cc File remoting/host/chromoting_param_traits.cc (right): https://codereview.chromium.org/92473002/diff/140001/remoting/host/chromoting_param_traits.cc#newcode136 remoting/host/chromoting_param_traits.cc:136: return false; On 2014/01/23 20:16:32, Cris Neckar wrote: > ...
6 years, 11 months ago (2014-01-23 20:56:17 UTC) #15
Cris Neckar
On 2014/01/23 20:56:17, Wez wrote: > https://codereview.chromium.org/92473002/diff/140001/remoting/host/chromoting_param_traits.cc > File remoting/host/chromoting_param_traits.cc (right): > > https://codereview.chromium.org/92473002/diff/140001/remoting/host/chromoting_param_traits.cc#newcode136 > ...
6 years, 11 months ago (2014-01-23 20:59:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/140001
6 years, 11 months ago (2014-01-23 21:08:51 UTC) #17
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=215509
6 years, 11 months ago (2014-01-23 21:30:36 UTC) #18
Sergey Ulanov
https://codereview.chromium.org/92473002/diff/140001/remoting/host/chromoting_param_traits.cc File remoting/host/chromoting_param_traits.cc (right): https://codereview.chromium.org/92473002/diff/140001/remoting/host/chromoting_param_traits.cc#newcode136 remoting/host/chromoting_param_traits.cc:136: return false; On 2014/01/23 20:56:18, Wez wrote: > On ...
6 years, 11 months ago (2014-01-23 21:32:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/460001
6 years, 11 months ago (2014-01-28 01:51:53 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clang&number=172059
6 years, 11 months ago (2014-01-28 03:04:03 UTC) #21
dcaiafa
Sergey: please take a look at the latest patch. It fixes a build break in ...
6 years, 10 months ago (2014-01-28 20:16:23 UTC) #22
Sergey Ulanov
LGTM. Now I officially hate X11. https://codereview.chromium.org/92473002/diff/480001/remoting/host/basic_desktop_environment.h File remoting/host/basic_desktop_environment.h (right): https://codereview.chromium.org/92473002/diff/480001/remoting/host/basic_desktop_environment.h#newcode60 remoting/host/basic_desktop_environment.h:60: webrtc::DesktopCaptureOptions* desktop_capture_options() { ...
6 years, 10 months ago (2014-01-28 20:35:06 UTC) #23
dcaiafa
To illustrate the sort of build breaks that X11 introduced: one of its headers has ...
6 years, 10 months ago (2014-01-28 22:36:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/480001
6 years, 10 months ago (2014-01-28 22:38:21 UTC) #25
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=217481
6 years, 10 months ago (2014-01-28 23:21:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/500001
6 years, 10 months ago (2014-01-29 01:33:23 UTC) #27
commit-bot: I haz the power
Change committed as 247689
6 years, 10 months ago (2014-01-29 15:05:19 UTC) #28
gavinp
On 2014/01/29 15:05:19, I haz the power (commit-bot) wrote: > Change committed as 247689 I ...
6 years, 10 months ago (2014-01-29 17:03:46 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/520001
6 years, 10 months ago (2014-01-29 20:06:50 UTC) #30
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-29 20:17:11 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/520001
6 years, 10 months ago (2014-01-29 20:20:32 UTC) #32
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=220478
6 years, 10 months ago (2014-01-30 00:08:44 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/520001
6 years, 10 months ago (2014-01-30 15:36:07 UTC) #34
commit-bot: I haz the power
Failed to apply patch for remoting/remoting.gyp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-01-30 15:36:21 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/540001
6 years, 10 months ago (2014-01-30 17:47:18 UTC) #36
commit-bot: I haz the power
Change committed as 248045
6 years, 10 months ago (2014-01-30 21:56:23 UTC) #37
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 21:56:29 UTC) #38
dcaiafa
Rebased and fixed unittest memory corruption in preparation for relanding this. jln: please review IPC ...
6 years, 4 months ago (2014-08-07 00:50:44 UTC) #39
dcaiafa1
+jschuh -cdn jschuh: please review IPC in chromoting_messages.h. Notice that nothing changed since cdn@ reviewed ...
6 years, 4 months ago (2014-08-07 15:40:31 UTC) #40
jschuh
If nothing changed other than rebasing and fixing the test, then the original lgtm for ...
6 years, 4 months ago (2014-08-07 15:50:23 UTC) #41
dcaiafa
The CQ bit was checked by dcaiafa@chromium.org
6 years, 4 months ago (2014-08-07 23:25:37 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcaiafa@chromium.org/92473002/580001
6 years, 4 months ago (2014-08-08 00:00:17 UTC) #43
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 06:33:56 UTC) #44
Message was sent while issue was closed.
Change committed as 288226

Powered by Google App Engine
This is Rietveld 408576698