Chromium Code Reviews
DescriptionPlugin Power Saver: Fix implicitly sized and below the fold plugins.
This patch changes a few behaviors.
1. Make implicitly sized (e.g. width="100%") plugins work with Plugin Power Saver. Previously sizes were read from plugin parameters, which doesn't work for implicitly sized plugins. Now, we look at the actual blink::WebRect view bounds.
2. Timeout keyframe extraction after 150 frames rather than a fixed 5 seconds. The previous behavior was broken for plugins that are loaded off-screen. (The countdown begins even though no frames are being generated until the plugin goes on-screen).
3. When "Detect and run..." is on, always respect the 'poster' parameter. This is a tweak to the existing behavior, which is to use the 'poster' param only for peripheral plugins. This should have no user impact, since no one actually uses the 'poster' param right now.
4. Clean up metric collection in LoadablePluginPlaceholder. Previous behavior was overcounting in some circumstances.
5. Reduces RenderFrame public interface and total SLOC.
BUG=443431, 456217, 403800
Committed: https://crrev.com/d7798e13906ebb1b531043738446eb378da369b1
Cr-Commit-Position: refs/heads/master@{#315393}
Patch Set 1 #Patch Set 2 : self review #Patch Set 3 : #Patch Set 4 : add back documentation. #Patch Set 5 : fix windows compile #
Total comments: 5
Patch Set 6 : Move Get Poster call to anon namespace #
Total comments: 2
Patch Set 7 : bah #
Total comments: 4
Patch Set 8 : #Messages
Total messages: 19 (4 generated)
|