|
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
Total comments: 4
Total comments: 1
|
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
|
Total messages: 24 (0 generated)
|