Plugin Power Saver: Implement srcset syntax for posters.
commitbacf2a1a5b79f59460b1258a502f9f889f18e59f
authortommycli <tommycli@chromium.org>
Mon, 9 Mar 2015 18:20:20 +0000 (9 11:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 9 Mar 2015 18:21:41 +0000 (9 18:21 +0000)
tree568b9ab2ffa6e242ff24ff086bb514ab021b7143
parent078a21994451a696f3cad1d26872adf590dfc651
Plugin Power Saver: Implement srcset syntax for posters.

The objective of the patch is that the poster attribute for plugins can support high-dpi images via the img srcset syntax, i.e.

<param name="poster" value="poster1x.png 1x, poster2x.png 2x" />

BUG=457333

Review URL: https://codereview.chromium.org/981623003

Cr-Commit-Position: refs/heads/master@{#319689}
chrome/renderer/chrome_content_renderer_client.cc
chrome/renderer/plugins/chrome_plugin_placeholder.cc
chrome/renderer/plugins/chrome_plugin_placeholder.h
chrome/renderer/plugins/plugin_preroller.cc
chrome/renderer/resources/plugin_poster.html
components/plugins/renderer/plugin_placeholder.cc
components/plugins/renderer/webview_plugin.cc