DescriptionRefactor ResourceLoadPriorityOptimizer to avoid walking render tree after every layout and scroll event.
1. Instead of calling RenderObject::didScroll on every
FrameView::scrollPositionChanged, use a 250 ms timer to update the
image priorities. Ideally, we only update the image priorities once
now about 250 ms after scrolling stops.
2. Whenever a RenderImage/RenderBlock is created, it's added to the
ResourceLoadPriorityOptimizer. After a layout/scroll, iterate the list
removing any RenderObject that either has no images, or has loaded all
of it's images.
BUG=332285
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165582
Patch Set 1 #Patch Set 2 : Use esprehn's suggestion. #
Total comments: 14
Patch Set 3 : Changes from review. #
Total comments: 3
Messages
Total messages: 11 (0 generated)
|