[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:
+1
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user