Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Issue 1477713002: Paint tab-loading throbbers into a ui::Layer (reland). (Closed)

Created:
5 years ago by tapted
Modified:
5 years ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, miu+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Paint 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -67 lines) Patch
M chrome/browser/ui/views/tabs/tab.h View 5 chunks +5 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 8 chunks +116 lines, -42 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_controller.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_unittest.cc View 5 chunks +92 lines, -10 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
sky
Rubber stamp LGTM
5 years ago (2015-11-30 16:55:08 UTC) #7
tapted
Thanks sky! The fix stuck it's landing, and I'm entering a build sheriff shift, so ...
5 years ago (2015-12-03 00:22:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477713002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477713002/40001
5 years ago (2015-12-03 00:24:16 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/130883) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years ago (2015-12-03 00:31:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477713002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477713002/60001
5 years ago (2015-12-03 02:34:59 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years ago (2015-12-03 03:00:48 UTC) #17
commit-bot: I haz the power
5 years ago (2015-12-03 03:01:37 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/859410a5e85488c0b79de51814351f30cf2814a5
Cr-Commit-Position: refs/heads/master@{#362878}

Powered by Google App Engine
This is Rietveld 408576698