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

Unified Diff: chrome/renderer/plugins/plugin_preroller.h

Issue 1015023002: Plugin Power Saver: Throttle 'large' plugins that appear small. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use gfx::Size Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/plugins/plugin_preroller.h
diff --git a/chrome/renderer/plugins/plugin_preroller.h b/chrome/renderer/plugins/plugin_preroller.h
index b059d77f040e78af516282d754cf9893df405c3a..b46ed68b167272f70c0b458660aa014ebe12cff8 100644
--- a/chrome/renderer/plugins/plugin_preroller.h
+++ b/chrome/renderer/plugins/plugin_preroller.h
@@ -10,6 +10,7 @@
#include "content/public/renderer/plugin_instance_throttler.h"
#include "content/public/renderer/render_frame_observer.h"
#include "third_party/WebKit/public/web/WebPluginParams.h"
+#include "ui/gfx/geometry/size.h"
#include "url/gurl.h"
namespace blink {
@@ -54,6 +55,7 @@ class PluginPreroller : public content::PluginInstanceThrottler::Observer,
content::PluginInstanceThrottler* throttler_;
GURL keyframe_data_url_;
+ gfx::Size keyframe_size_;
DISALLOW_COPY_AND_ASSIGN(PluginPreroller);
};

Powered by Google App Engine
This is Rietveld 408576698