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

Issue 8791001: Fix mouse lock perf issue on Windows. (Closed)

Created:
9 years ago by yzshen1
Modified:
9 years ago
Reviewers:
scheib, brettw
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Fix mouse lock perf issue on Windows. Don't move the cursor back to the center of the view unless it approaches the border. BUG=106054 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113061

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : Record move-to-center target position & use structs to group relevant variables. #

Total comments: 2

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : Changes in response to Brett's suggestion. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -38 lines) Patch
M content/browser/renderer_host/render_widget_host_view_win.h View 1 2 2 chunks +23 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 7 chunks +66 lines, -31 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
yzshen1
Hi, Brett and Vincent. Please take a look at this CL. Thanks!
9 years ago (2011-12-03 00:17:30 UTC) #1
scheib
LGTM, but I do have a paranoid question: http://codereview.chromium.org/8791001/diff/3001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/8791001/diff/3001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode2417 content/browser/renderer_host/render_widget_host_view_win.cc:2417: if ...
9 years ago (2011-12-03 04:13:00 UTC) #2
scheib
Oh, and, obviously you tried manually testing that performance was improved? How well did it ...
9 years ago (2011-12-03 04:14:04 UTC) #3
yzshen1
> Oh, and, obviously you tried manually testing that performance was improved? > How well ...
9 years ago (2011-12-05 01:16:42 UTC) #4
scheib
http://codereview.chromium.org/8791001/diff/8001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/8791001/diff/8001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode2420 content/browser/renderer_host/render_widget_host_view_win.cc:2420: if (move_to_center_request_.target.x() == center.x && ;X Am I confused, ...
9 years ago (2011-12-05 19:38:29 UTC) #5
yzshen1
http://codereview.chromium.org/8791001/diff/8001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/8791001/diff/8001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode2420 content/browser/renderer_host/render_widget_host_view_win.cc:2420: if (move_to_center_request_.target.x() == center.x && Sorry. I didn't change ...
9 years ago (2011-12-05 20:05:35 UTC) #6
brettw
lgtm http://codereview.chromium.org/8791001/diff/11001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/8791001/diff/11001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode92 content/browser/renderer_host/render_widget_host_view_win.cc:92: // it approaches the border. |kMouseLockBorderPercentage| specifies the ...
9 years ago (2011-12-05 20:15:22 UTC) #7
scheib
LGTM Though I think you should rename the center variable. ;)
9 years ago (2011-12-05 20:34:37 UTC) #8
yzshen1
Thanks! http://codereview.chromium.org/8791001/diff/11001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/8791001/diff/11001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode92 content/browser/renderer_host/render_widget_host_view_win.cc:92: // it approaches the border. |kMouseLockBorderPercentage| specifies the ...
9 years ago (2011-12-05 20:36:43 UTC) #9
yzshen1
On 2011/12/05 20:34:37, scheib wrote: > LGTM > > Though I think you should rename ...
9 years ago (2011-12-05 20:37:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/8791001/15001
9 years ago (2011-12-05 20:43:23 UTC) #11
commit-bot: I haz the power
Try job failure for 8791001-15001 (retry) on linux_clang for step "compile" (clobber build). It's a ...
9 years ago (2011-12-05 21:15:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/8791001/15001
9 years ago (2011-12-05 21:51:05 UTC) #13
commit-bot: I haz the power
9 years ago (2011-12-05 23:37:17 UTC) #14
Change committed as 113061

Powered by Google App Engine
This is Rietveld 408576698