Chromium Code Reviews
DescriptionFix 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. #
Dependent Patchsets: Messages
Total messages: 22 (12 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||