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

Issue 556073003: [Ozone-DRI] Do proper bounds checks when moving the cursor (Closed)

Created:
6 years, 3 months ago by dnicoara
Modified:
6 years, 3 months ago
Reviewers:
spang
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@restore-cursor
Project:
chromium
Visibility:
Public.

Description

[Ozone-DRI] Do proper bounds checks when moving the cursor Related changes: - Created a DriWindowManager to keep track of the platform windows. These are then used to perform the bounds clipping for the cursor. - Moved delegate manager to DriWindowDelegateManager. In a follow-up CL the delegate manager in the browser process will be removed in favor of holing on to the DriWindowDelegates on the DriWindow. BUG=none NOTRY=true Committed: https://crrev.com/774231cb2bb8fad68edcba218b5ed07ae339770e Cr-Commit-Position: refs/heads/master@{#294926}

Patch Set 1 #

Patch Set 2 : clang format #

Patch Set 3 : Cache window #

Total comments: 9

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 1

Patch Set 7 : . #

Patch Set 8 : Earlier check for kNullAcceleratedWidget #

Total comments: 2

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -112 lines) Patch
M ui/ozone/platform/dri/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/dri.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/dri_cursor.h View 3 2 chunks +5 lines, -1 line 0 comments Download
M ui/ozone/platform/dri/dri_cursor.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -8 lines 0 comments Download
M ui/ozone/platform/dri/dri_surface_factory.h View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/ozone/platform/dri/dri_surface_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/ozone/platform/dri/dri_surface_factory_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M ui/ozone/platform/dri/dri_window.h View 3 chunks +3 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/dri_window.cc View 3 chunks +8 lines, -2 lines 0 comments Download
A + ui/ozone/platform/dri/dri_window_delegate_manager.h View 3 chunks +7 lines, -10 lines 0 comments Download
A + ui/ozone/platform/dri/dri_window_delegate_manager.cc View 1 2 chunks +11 lines, -15 lines 0 comments Download
M ui/ozone/platform/dri/dri_window_delegate_proxy.h View 1 chunk +4 lines, -1 line 0 comments Download
M ui/ozone/platform/dri/dri_window_manager.h View 2 chunks +16 lines, -19 lines 0 comments Download
M ui/ozone/platform/dri/dri_window_manager.cc View 3 chunks +16 lines, -22 lines 0 comments Download
M ui/ozone/platform/dri/gbm_surface_factory.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/ozone/platform/dri/gbm_surface_factory.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M ui/ozone/platform/dri/gpu_platform_support_gbm.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/ozone/platform/dri/gpu_platform_support_gbm.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_dri.cc View 1 4 chunks +6 lines, -2 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_gbm.cc View 1 5 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (2 generated)
dnicoara
PTAL
6 years, 3 months ago (2014-09-12 18:46:37 UTC) #2
spang
On 2014/09/12 18:46:37, dnicoara wrote: > PTAL Thanks, it bugged me that the window manager ...
6 years, 3 months ago (2014-09-12 19:26:53 UTC) #3
spang
lgtm lgtm with nits https://codereview.chromium.org/556073003/diff/40001/ui/ozone/platform/dri/dri_cursor.cc File ui/ozone/platform/dri/dri_cursor.cc (right): https://codereview.chromium.org/556073003/diff/40001/ui/ozone/platform/dri/dri_cursor.cc#newcode61 ui/ozone/platform/dri/dri_cursor.cc:61: if (cursor_widget_ != gfx::kNullAcceleratedWidget) Can ...
6 years, 3 months ago (2014-09-12 19:28:39 UTC) #4
dnicoara
With regards to your first post: I'm wondering if we'll even need some of these ...
6 years, 3 months ago (2014-09-12 20:24:18 UTC) #5
spang
On 2014/09/12 20:24:18, dnicoara wrote: > With regards to your first post: > > I'm ...
6 years, 3 months ago (2014-09-12 21:05:33 UTC) #6
spang
https://codereview.chromium.org/556073003/diff/40001/ui/ozone/platform/dri/dri_cursor.cc File ui/ozone/platform/dri/dri_cursor.cc (right): https://codereview.chromium.org/556073003/diff/40001/ui/ozone/platform/dri/dri_cursor.cc#newcode65 ui/ozone/platform/dri/dri_cursor.cc:65: cursor_window_ = window_manager_->GetWindow(widget); On 2014/09/12 20:24:17, dnicoara wrote: > ...
6 years, 3 months ago (2014-09-12 21:05:47 UTC) #7
dnicoara
PTAL at patchset #3. I've had to revert the way we initialize the cursor_widget since ...
6 years, 3 months ago (2014-09-12 21:24:52 UTC) #8
dnicoara
On 2014/09/12 21:05:33, spang wrote: > On 2014/09/12 20:24:18, dnicoara wrote: > > With regards ...
6 years, 3 months ago (2014-09-12 21:31:07 UTC) #9
spang
On 2014/09/12 21:24:52, dnicoara wrote: > PTAL at patchset #3. I've had to revert the ...
6 years, 3 months ago (2014-09-12 21:42:08 UTC) #10
dnicoara
On 2014/09/12 21:42:08, spang wrote: > On 2014/09/12 21:24:52, dnicoara wrote: > > PTAL at ...
6 years, 3 months ago (2014-09-15 17:41:25 UTC) #11
dnicoara
Updated and moved one early return before getting the DriWindow if widget is kNullAcceleratedWidget.
6 years, 3 months ago (2014-09-15 18:15:38 UTC) #12
dnicoara
Updated and moved one early return before getting the DriWindow if widget is kNullAcceleratedWidget.
6 years, 3 months ago (2014-09-15 18:15:39 UTC) #13
spang
On 2014/09/15 17:41:25, dnicoara wrote: > On 2014/09/12 21:42:08, spang wrote: > > On 2014/09/12 ...
6 years, 3 months ago (2014-09-15 18:20:05 UTC) #14
spang
https://codereview.chromium.org/556073003/diff/100001/ui/ozone/platform/dri/dri_cursor.cc File ui/ozone/platform/dri/dri_cursor.cc (right): https://codereview.chromium.org/556073003/diff/100001/ui/ozone/platform/dri/dri_cursor.cc#newcode66 ui/ozone/platform/dri/dri_cursor.cc:66: if (cursor_window_ == gfx::kNullAcceleratedWidget || !window) Shouldn't this just ...
6 years, 3 months ago (2014-09-15 18:23:34 UTC) #15
spang
lgtm
6 years, 3 months ago (2014-09-15 18:37:39 UTC) #16
dnicoara
In the follow-up CL I plan on having DriWindowManager update the current_window_ for the cursor ...
6 years, 3 months ago (2014-09-15 18:38:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/556073003/160001
6 years, 3 months ago (2014-09-15 22:04:13 UTC) #19
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 1d593111d5e1e6c97eb64f1d399e4a79d1a14ac6
6 years, 3 months ago (2014-09-15 23:43:37 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 23:48:32 UTC) #21
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/774231cb2bb8fad68edcba218b5ed07ae339770e
Cr-Commit-Position: refs/heads/master@{#294926}

Powered by Google App Engine
This is Rietveld 408576698