Currently title generation for the tab switcher happens for all tabs when the tab switcher is entered. This can be improved by only creating the titles that are currently visible.
I think the best approach to this is going to be moving the title creation logic to native.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/00a508c5af4957e8986af18e71174352bc212e34 commit 00a508c5af4957e8986af18e71174352bc212e34 Author: mdjones <mdjones@chromium.org> Date: Fri Sep 09 20:57:34 2016 Move title creation logic to native This change moves title generation logic to native. This allows titles to be created as they are needed rather than all at once. The textures for the title layers are still created by java since they start as Android views, but this is now triggered by native code. BUG= 644770 Review-Url: https://codereview.chromium.org/2320623003 Cr-Commit-Position: refs/heads/master@{#417703} [modify] https://crrev.com/00a508c5af4957e8986af18e71174352bc212e34/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java [modify] https://crrev.com/00a508c5af4957e8986af18e71174352bc212e34/chrome/android/java/src/org/chromium/chrome/browser/compositor/LayerTitleCache.java [modify] https://crrev.com/00a508c5af4957e8986af18e71174352bc212e34/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerChrome.java [modify] https://crrev.com/00a508c5af4957e8986af18e71174352bc212e34/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocumentTabSwitcher.java [modify] https://crrev.com/00a508c5af4957e8986af18e71174352bc212e34/chrome/browser/android/compositor/layer_title_cache.cc
Comment 1 by mdjones@chromium.org
, Sep 7 2016