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

Issue 2313563002: Reduce jank from favicon downscaling. (Closed)

Created:
4 years, 3 months ago by aelias_OOO_until_Jul13
Modified:
4 years, 3 months ago
Reviewers:
brettw, sky
CC:
chromium-reviews, mdjones, pkotwicz
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce jank from favicon downscaling. This refactors the favicon decode+downscaling+reencode logic into a utility method and calls it on the history thread instead of janking the UI thread. (I left in a call in the original site as a fallback path, but it will typically early-return as the work was already done.) I also added TRACE_EVENTs to help diagnose future performance issues. BUG=644573 Committed: https://crrev.com/825375667cf20a127144357b2bcb24201f794e7d Cr-Commit-Position: refs/heads/master@{#417190}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename function and remove 'Fast' #

Total comments: 1

Patch Set 3 : Rename to ResizeFaviconBitmapResult #

Total comments: 4

Patch Set 4 : Add description comment in header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -40 lines) Patch
M components/favicon/core/favicon_service.cc View 1 2 11 chunks +15 lines, -40 lines 0 comments Download
M components/favicon_base/favicon_util.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M components/favicon_base/favicon_util.cc View 1 2 4 chunks +50 lines, -0 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service.cc View 1 6 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
aelias_OOO_until_Jul13
Hi sky@, PTAL.
4 years, 3 months ago (2016-09-06 04:28:15 UTC) #6
sky
I'm worried about the effects of changing to fast png encode of favicons on desktop. ...
4 years, 3 months ago (2016-09-06 20:19:40 UTC) #8
aelias_OOO_until_Jul13
https://codereview.chromium.org/2313563002/diff/1/components/favicon_base/favicon_util.h File components/favicon_base/favicon_util.h (right): https://codereview.chromium.org/2313563002/diff/1/components/favicon_base/favicon_util.h#newcode39 components/favicon_base/favicon_util.h:39: favicon_base::FaviconRawBitmapResult ShoehornFaviconToSize( On 2016/09/06 at 20:19:39, sky wrote: > ...
4 years, 3 months ago (2016-09-06 20:46:43 UTC) #12
sky
https://codereview.chromium.org/2313563002/diff/1/components/favicon_base/favicon_util.h File components/favicon_base/favicon_util.h (right): https://codereview.chromium.org/2313563002/diff/1/components/favicon_base/favicon_util.h#newcode39 components/favicon_base/favicon_util.h:39: favicon_base::FaviconRawBitmapResult ShoehornFaviconToSize( On 2016/09/06 20:46:42, aelias wrote: > On ...
4 years, 3 months ago (2016-09-06 21:50:45 UTC) #15
aelias_OOO_until_Jul13
https://codereview.chromium.org/2313563002/diff/1/components/favicon_base/favicon_util.h File components/favicon_base/favicon_util.h (right): https://codereview.chromium.org/2313563002/diff/1/components/favicon_base/favicon_util.h#newcode39 components/favicon_base/favicon_util.h:39: favicon_base::FaviconRawBitmapResult ShoehornFaviconToSize( On 2016/09/06 at 21:50:45, sky wrote: > ...
4 years, 3 months ago (2016-09-06 22:10:49 UTC) #17
brettw
Is my feedback still necessary here? I'm unclear on what's being discussed.
4 years, 3 months ago (2016-09-06 22:35:27 UTC) #19
sky
The reason I added you to this review has been removed. But I think it's ...
4 years, 3 months ago (2016-09-06 22:44:54 UTC) #20
aelias_OOO_until_Jul13
On 2016/09/06 at 22:44:54, sky wrote: > The reason I added you to this review ...
4 years, 3 months ago (2016-09-07 21:57:33 UTC) #24
sky
https://codereview.chromium.org/2313563002/diff/40001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2313563002/diff/40001/components/favicon/core/favicon_service.cc#newcode348 components/favicon/core/favicon_service.cc:348: ResizeFaviconBitmapResult(favicon_bitmap_results, desired_size_in_pixel)); Why do we need this in both ...
4 years, 3 months ago (2016-09-07 23:28:22 UTC) #25
aelias_OOO_until_Jul13
https://codereview.chromium.org/2313563002/diff/40001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2313563002/diff/40001/components/favicon/core/favicon_service.cc#newcode348 components/favicon/core/favicon_service.cc:348: ResizeFaviconBitmapResult(favicon_bitmap_results, desired_size_in_pixel)); On 2016/09/07 at 23:28:22, sky wrote: > ...
4 years, 3 months ago (2016-09-08 01:33:08 UTC) #27
sky
LGTM
4 years, 3 months ago (2016-09-08 04:19:25 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2313563002/60001
4 years, 3 months ago (2016-09-08 04:22:53 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-08 04:26:29 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 04:28:29 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/825375667cf20a127144357b2bcb24201f794e7d
Cr-Commit-Position: refs/heads/master@{#417190}

Powered by Google App Engine
This is Rietveld 408576698