[Instant Start] Create LayoutManager before native is initialized.
The changes of the startup order in this CL are behind the feature flag "InstantStart". In this CL, we split setupCompositorContent() into - setupCompositorContentPreNative() and - setupCompositorContentPostNative(). The setupCompositorContentPreNative() creates the LayoutManager. When Instant start is on: 1) triggerLayoutInflation() is called before loading the native library. 2) setupCompositorContentPreNative() is called in performPostInflationStartup() before native is initialized. Besides, the value of field trial "tab_switcher_on_return_time_ms" of ChromeFeatureList.TAB_SWITCHER_ON_RETURN is cached now. In the follow up CL, we may move the creation of the LayoutManager into doLayoutInflation(). Bug: 1041865 Change-Id: Ib1039e152cece799ffed0f636a5e55fafbf4adb2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2110529 Commit-Queue: Xi Han <hanxi@chromium.org> Reviewed-by:Yaron Friedman <yfriedman@chromium.org> Reviewed-by:
Wei-Yin Chen (陳威尹) <wychen@chromium.org> Cr-Commit-Position: refs/heads/master@{#756652}
Showing
Please register or sign in to comment