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

Issue 1959863002: CURSORINFO.flags should be checked before capturing its bitmap (Closed)

Created:
4 years, 7 months ago by Hzj_jie
Modified:
4 years, 7 months ago
Reviewers:
Sergey Ulanov, joedow
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

CURSORINFO.flags should be checked before capturing its bitmap BUG=566178, 428886 Committed: https://crrev.com/99f8cd0ae2f05c24410ddd6b2d9ea3d56f1fec5f Cr-Commit-Position: refs/heads/master@{#12739}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Only ignore cursor bitmap when host hides it #

Total comments: 4

Patch Set 3 : Send an empty bitmap if cursor is suppressed, send a default arrow if cursor is hidden. #

Total comments: 9

Patch Set 4 : Resolve review comments #

Patch Set 5 : More comments about why we do not CloseHandle on an HCURSOR. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -12 lines) Patch
M webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc View 1 2 3 4 6 chunks +44 lines, -12 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
Hzj_jie
4 years, 7 months ago (2016-05-07 01:12:07 UTC) #3
joedow
https://codereview.chromium.org/1959863002/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode95 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:95: if (cursor_info.flags != CURSOR_SHOWING) { Do any clients rely ...
4 years, 7 months ago (2016-05-09 17:14:05 UTC) #4
Hzj_jie
https://codereview.chromium.org/1959863002/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode95 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:95: if (cursor_info.flags != CURSOR_SHOWING) { On 2016/05/09 17:14:05, joedow ...
4 years, 7 months ago (2016-05-10 00:40:59 UTC) #5
Hzj_jie
Sergey, would you please have a look at this change?
4 years, 7 months ago (2016-05-10 00:42:34 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/1959863002/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode96 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:96: return; I see two issues with this fix: 1. ...
4 years, 7 months ago (2016-05-10 17:17:08 UTC) #8
Hzj_jie
https://codereview.chromium.org/1959863002/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/1/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode95 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:95: if (cursor_info.flags != CURSOR_SHOWING) { On 2016/05/09 17:14:05, joedow ...
4 years, 7 months ago (2016-05-10 18:15:22 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/1959863002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode95 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:95: if (cursor_info.flags == CURSOR_SHOWING && I still think that ...
4 years, 7 months ago (2016-05-10 20:51:15 UTC) #10
Sergey Ulanov
https://codereview.chromium.org/1959863002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode95 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:95: if (cursor_info.flags == CURSOR_SHOWING && On 2016/05/10 20:51:15, Sergey ...
4 years, 7 months ago (2016-05-10 20:58:12 UTC) #11
Hzj_jie
https://codereview.chromium.org/1959863002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode95 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:95: if (cursor_info.flags == CURSOR_SHOWING && On 2016/05/10 20:51:15, Sergey ...
4 years, 7 months ago (2016-05-11 00:55:49 UTC) #12
Hzj_jie
On 2016/05/11 00:55:49, Hzj_jie wrote: > https://codereview.chromium.org/1959863002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc > File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): > > https://codereview.chromium.org/1959863002/diff/20001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode95 > ...
4 years, 7 months ago (2016-05-11 22:11:15 UTC) #13
Hzj_jie
4 years, 7 months ago (2016-05-11 22:20:42 UTC) #15
Sergey Ulanov
https://codereview.chromium.org/1959863002/diff/40001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/40001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode29 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:29: bool Equal(const CURSORINFO& left, const CURSORINFO& right) { Rename ...
4 years, 7 months ago (2016-05-12 23:23:33 UTC) #16
Hzj_jie
https://codereview.chromium.org/1959863002/diff/40001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/40001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode29 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:29: bool Equal(const CURSORINFO& left, const CURSORINFO& right) { On ...
4 years, 7 months ago (2016-05-13 01:05:29 UTC) #17
Sergey Ulanov
lgtm https://codereview.chromium.org/1959863002/diff/40001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): https://codereview.chromium.org/1959863002/diff/40001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc#newcode118 webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc:118: // Note that |cursor_info.hCursor| does not need to ...
4 years, 7 months ago (2016-05-13 21:32:40 UTC) #18
Hzj_jie
On 2016/05/13 21:32:40, Sergey Ulanov wrote: > lgtm > > https://codereview.chromium.org/1959863002/diff/40001/webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc > File webrtc/modules/desktop_capture/mouse_cursor_monitor_win.cc (right): ...
4 years, 7 months ago (2016-05-13 22:25:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1959863002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1959863002/80001
4 years, 7 months ago (2016-05-13 23:37:17 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-13 23:41:55 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 23:42:03 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/99f8cd0ae2f05c24410ddd6b2d9ea3d56f1fec5f
Cr-Commit-Position: refs/heads/master@{#12739}

Powered by Google App Engine
This is Rietveld 408576698