[Android] New c-tor signature for LayoutManagerChrome

Chromium change:
https://github.com/chromium/chromium/commit/0d0895af67ad844e5292c4640a3b0fffbdf44839

[Jank] Make LayerTitleCache Tablet-only.
Noticed while looking at a startup/jank issue that we were creating the
LayerTitleCache. Now that we only ever use the java tab-switcher on
Phones, I opted to nuke it entirely from non-tablet UI.

Along the way, I moved ownership entirely out of CompostorViewHolder and
into LayoutManagerChromeTablet.

Change-Id: Ifaff8a7fc6eb507d0b7edd688a493103a55d2730
This commit is contained in:
samartnik
2022-02-17 14:02:59 -05:00
committed by mkarolin
parent 126b4c13f2
commit 1d93f69ea0
@@ -39,12 +39,10 @@ public class BraveLayoutManagerChrome extends LayoutManagerChrome
public BraveLayoutManagerChrome(LayoutManagerHost host, ViewGroup contentContainer,
boolean createOverviewLayout, @Nullable StartSurface startSurface,
ObservableSupplier<TabContentManager> tabContentManagerSupplier,
Supplier<LayerTitleCache> layerTitleCacheSupplier,
OneshotSupplierImpl<OverviewModeBehavior> overviewModeBehaviorSupplier,
Supplier<TopUiThemeColorProvider> topUiThemeColorProvider, JankTracker jankTracker) {
super(host, contentContainer, createOverviewLayout, startSurface, tabContentManagerSupplier,
layerTitleCacheSupplier, overviewModeBehaviorSupplier, topUiThemeColorProvider,
jankTracker);
overviewModeBehaviorSupplier, topUiThemeColorProvider, jankTracker);
mCreateOverviewLayout = createOverviewLayout && startSurface == null;
}