DescriptionPaint tab-loading throbbers into a ui::Layer (reland).
In views browsers, updating the tab loading throbber currently requires
a repaint that starts at the BrowserView and trickles the damage
rectangle down until it reaches the favicon area. This uses a lot of CPU
and energy: about 11 watts above idle on a MacBook Pro (and significant
CPU on Linux) for a single "waiting" spinner.
Giving the throbber a layer allows the repaint to be isolated, with
compositing done on the GPU. This brings total energy usage down to
about 2.5 watts above idle.
Plots at http://crbug.com/391646#c44
Previously reviewed in https://codereview.chromium.org/1393193002/.
Landed but reverted since it tickled a pre-existing lifetime issue,
now fixed.
BUG=391646
TEST=Spinners should look and behave the same, but use less energy/CPU.
Committed: https://crrev.com/859410a5e85488c0b79de51814351f30cf2814a5
Cr-Commit-Position: refs/heads/master@{#362878}
Patch Set 1 #Patch Set 2 : depend on fix in http://crrev.com/1474993003/ #Patch Set 3 : Rebase for r362326 and r362195 conflicts #
Messages
Total messages: 19 (12 generated)
|