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

Issue 2189893004: Unify display ids between Display and PlatformDisplay. (Closed)

Created:
4 years, 4 months ago by kylechar
Modified:
4 years, 4 months ago
Reviewers:
msw
CC:
chromium-reviews, rjkroege
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unify display ids between Display and PlatformDisplay. Instead of having an int32_t and int64_t id for each display, unify them to use a single int64_t id. The int64_t id is the actual display id and is provided by lower level code, so it makes more sense to keep it. BUG=625876 Committed: https://crrev.com/200f7a114aa28e831677db649f134e7346d825eb Cr-Commit-Position: refs/heads/master@{#408632}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move id into PlatformDisplay and fix tests. #

Total comments: 8

Patch Set 3 : Fix nits. #

Patch Set 4 : Back to pure virtual. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -45 lines) Patch
M services/ui/ws/display.h View 1 3 chunks +1 line, -5 lines 0 comments Download
M services/ui/ws/display.cc View 1 2 3 4 chunks +6 lines, -7 lines 0 comments Download
M services/ui/ws/display_manager.h View 2 chunks +0 lines, -4 lines 0 comments Download
M services/ui/ws/display_manager.cc View 2 chunks +1 line, -9 lines 0 comments Download
M services/ui/ws/platform_display.h View 1 2 3 5 chunks +4 lines, -4 lines 0 comments Download
M services/ui/ws/platform_display.cc View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
M services/ui/ws/touch_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/user_display_manager.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
kylechar
4 years, 4 months ago (2016-07-28 16:51:06 UTC) #2
msw
nice! lgtm with a nit; I'll look again if you address it. https://codereview.chromium.org/2189893004/diff/1/services/ui/ws/display.h File services/ui/ws/display.h ...
4 years, 4 months ago (2016-07-28 18:05:32 UTC) #4
kylechar
Made some changes you suggested. The tests definitely would have failed with what I had ...
4 years, 4 months ago (2016-07-28 18:49:22 UTC) #5
msw
https://codereview.chromium.org/2189893004/diff/20001/services/ui/ws/display.cc File services/ui/ws/display.cc (right): https://codereview.chromium.org/2189893004/diff/20001/services/ui/ws/display.cc#newcode75 services/ui/ws/display.cc:75: int64_t Display::GetId() const { optional nit: this seems like ...
4 years, 4 months ago (2016-07-28 19:01:02 UTC) #6
kylechar
Thanks msw! https://codereview.chromium.org/2189893004/diff/20001/services/ui/ws/display.cc File services/ui/ws/display.cc (right): https://codereview.chromium.org/2189893004/diff/20001/services/ui/ws/display.cc#newcode75 services/ui/ws/display.cc:75: int64_t Display::GetId() const { On 2016/07/28 19:01:02, ...
4 years, 4 months ago (2016-07-28 19:20:16 UTC) #7
msw
lgtm
4 years, 4 months ago (2016-07-28 19:22:21 UTC) #8
kylechar
Talking with sadrul@ he thought changing the class from pure virtual to abstract should happen ...
4 years, 4 months ago (2016-07-29 13:06:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2189893004/60001
4 years, 4 months ago (2016-07-29 13:06:55 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-29 13:57:28 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 13:58:42 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/200f7a114aa28e831677db649f134e7346d825eb
Cr-Commit-Position: refs/heads/master@{#408632}

Powered by Google App Engine
This is Rietveld 408576698