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

Issue 153983004: Schedule image resource downloads by decreasing visual impact - Blink Side (Closed)

Created:
6 years, 10 months ago by shatch
Modified:
6 years, 9 months ago
CC:
blink-reviews, jamesr, zoltan1, dsinclair, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, abarth-chromium, dglazkov+blink, gavinp+loader_chromium.org, jchaffraix+rendering, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Schedule image resource downloads by decreasing visual impact This CL adds an intra-priority level sorting value for finer grained control of resource loading. The blink side of this patch sorts images by estimated on screen real-estate, preferring to download images in order of decreasing visual impact. Ie. On a page with a large banner, and dozens of small icons, the large banner will most likely be scheduled ahead of the others. In the future, we can also use this to experiment with other signals, ie. prioritize out of viewport images by their distance to viewport. Will be followed up by https://codereview.chromium.org/146333004/. In our tests, this was a nice win on speed-index for desktop, with a gain of about ~2-3%. This is first of 3 sided patch. Following pattern suggested on chromium-dev: " 1) Add the new WebKit interface, preserving the old. 2) Change Chrome to use the new interface. 3) Modify WebKit to remove the old interface. " Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170072

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Changes from review. #

Total comments: 1

Patch Set 3 : Rebase + variable name change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -36 lines) Patch
M Source/core/fetch/FetchContext.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/FetchContext.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/Resource.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/fetch/ResourceLoadPriorityOptimizer.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/fetch/ResourceLoadPriorityOptimizer.cpp View 1 2 2 chunks +14 lines, -7 lines 0 comments Download
M Source/core/fetch/ResourceLoader.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/ResourceLoader.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/fetch/ResourceLoaderHost.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameFetchContext.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameFetchContext.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/loader/FrameLoaderClient.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/rendering/RenderImage.cpp View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M Source/platform/network/ResourceRequest.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M Source/platform/network/ResourceRequest.cpp View 1 2 4 chunks +5 lines, -2 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M public/platform/WebURLLoader.h View 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
shatch
6 years, 10 months ago (2014-02-10 19:54:15 UTC) #1
shatch
On 2014/02/10 19:54:15, shatch wrote: ping!
6 years, 10 months ago (2014-02-12 21:31:20 UTC) #2
esprehn
Is there a reason to make this a generic "int intraPriorityValue" instead of making it ...
6 years, 10 months ago (2014-02-12 21:42:17 UTC) #3
shatch
New snapshot uploaded, ptal. For the "intraPriorityValue" name, screen area gives us a nice boost ...
6 years, 10 months ago (2014-02-13 18:13:49 UTC) #4
shatch
ping! On 2014/02/13 18:13:49, shatch wrote: > New snapshot uploaded, ptal. > > For the ...
6 years, 10 months ago (2014-02-19 00:33:01 UTC) #5
shatch
ping! On 2014/02/19 00:33:01, shatch wrote: > ping! > > On 2014/02/13 18:13:49, shatch wrote: ...
6 years, 10 months ago (2014-02-20 22:38:44 UTC) #6
esprehn
lgtm, seems reasonable. Btw I fixed up your change description. It should start with a ...
6 years, 10 months ago (2014-02-20 23:05:14 UTC) #7
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 9 months ago (2014-03-24 23:48:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/153983004/340001
6 years, 9 months ago (2014-03-24 23:48:11 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-24 23:51:58 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on blink_presubmit
6 years, 9 months ago (2014-03-24 23:51:59 UTC) #11
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 9 months ago (2014-03-25 18:58:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/153983004/340001
6 years, 9 months ago (2014-03-25 18:58:15 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 19:10:02 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on blink_presubmit
6 years, 9 months ago (2014-03-25 19:10:02 UTC) #15
esprehn
The CQ bit was checked by esprehn@chromium.org
6 years, 9 months ago (2014-03-25 21:24:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/153983004/340001
6 years, 9 months ago (2014-03-25 21:24:38 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-25 21:33:38 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on blink_presubmit
6 years, 9 months ago (2014-03-25 21:33:38 UTC) #19
abarth-chromium
public/ LGTM
6 years, 9 months ago (2014-03-25 21:56:17 UTC) #20
shatch
On 2014/03/25 21:56:17, abarth wrote: > public/ LGTM Doh! Thought I had reviewers covered, thanks!
6 years, 9 months ago (2014-03-26 17:21:09 UTC) #21
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 9 months ago (2014-03-26 17:48:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/153983004/340001
6 years, 9 months ago (2014-03-26 17:48:35 UTC) #23
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 17:53:22 UTC) #24
Message was sent while issue was closed.
Change committed as 170072

Powered by Google App Engine
This is Rietveld 408576698