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

Issue 2497303002: Fix ws::Display initialization order. (Closed)

Created:
4 years, 1 month ago by kylechar
Modified:
4 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ws::Display initialization order. The initialization order for ws::Display was a bit mixed up. It was not waiting for the accelerated widget to be available, assuming that it was available immediately after calling PlatformDisplay::Init() instead. Reorder ws::Display and ws::PlatformDisplay Init() methods. Make sure that most work is done in the Init() methods instead of constructors, as PlatformWindowDelegate::OnAcceleratedWidgetAvailable() can happen synchronously when creating the PlatformWindow, and we want constructors to have finished before we start using the objects. BUG=663907 Committed: https://crrev.com/1df004a488492aa7938dac963ddc5f6fc28f5ce7 Cr-Commit-Position: refs/heads/master@{#432616}

Patch Set 1 #

Patch Set 2 : Fix method name. #

Total comments: 2

Patch Set 3 : Change to GetSize(). #

Patch Set 4 : Fix use after move in test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -66 lines) Patch
M services/ui/ws/display.h View 1 2 5 chunks +8 lines, -7 lines 0 comments Download
M services/ui/ws/display.cc View 2 6 chunks +18 lines, -21 lines 0 comments Download
M services/ui/ws/display_manager.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/platform_display.h View 4 chunks +3 lines, -13 lines 0 comments Download
M services/ui/ws/platform_display.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M services/ui/ws/platform_display_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display_factory.h View 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/ws/test_utils.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 4 chunks +13 lines, -11 lines 0 comments Download
M services/ui/ws/user_display_manager_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree_host_factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (12 generated)
kylechar
4 years, 1 month ago (2016-11-14 18:26:03 UTC) #2
sky
https://codereview.chromium.org/2497303002/diff/20001/services/ui/ws/display.h File services/ui/ws/display.h (right): https://codereview.chromium.org/2497303002/diff/20001/services/ui/ws/display.h#newcode79 services/ui/ws/display.h:79: gfx::Size GetPixelSize() const; Isn't mus going to be entirely ...
4 years, 1 month ago (2016-11-14 21:36:19 UTC) #3
kylechar
On 2016/11/14 21:36:19, sky wrote: > https://codereview.chromium.org/2497303002/diff/20001/services/ui/ws/display.h > File services/ui/ws/display.h (right): > > https://codereview.chromium.org/2497303002/diff/20001/services/ui/ws/display.h#newcode79 > ...
4 years, 1 month ago (2016-11-14 21:39:52 UTC) #4
kylechar
4 years, 1 month ago (2016-11-14 21:40:00 UTC) #5
sky
On 2016/11/14 21:39:52, kylechar wrote: > On 2016/11/14 21:36:19, sky wrote: > > https://codereview.chromium.org/2497303002/diff/20001/services/ui/ws/display.h > ...
4 years, 1 month ago (2016-11-14 22:20:40 UTC) #6
kylechar
https://codereview.chromium.org/2497303002/diff/20001/services/ui/ws/display.h File services/ui/ws/display.h (right): https://codereview.chromium.org/2497303002/diff/20001/services/ui/ws/display.h#newcode79 services/ui/ws/display.h:79: gfx::Size GetPixelSize() const; On 2016/11/14 21:36:19, sky wrote: > ...
4 years, 1 month ago (2016-11-16 14:29:52 UTC) #7
sky
LGTM
4 years, 1 month ago (2016-11-16 16:57:34 UTC) #8
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/2497303002/60001
4 years, 1 month ago (2016-11-16 20:36:56 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-16 20:44:00 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 20:55:29 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1df004a488492aa7938dac963ddc5f6fc28f5ce7
Cr-Commit-Position: refs/heads/master@{#432616}

Powered by Google App Engine
This is Rietveld 408576698