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

Unified Diff: content/renderer/pepper/plugin_instance_throttler_impl.cc

Issue 2765633002: Plugin Power Saver Tiny: Treat completely obscured plugins as Tiny. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/pepper/plugin_power_saver_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/plugin_instance_throttler_impl.cc
diff --git a/content/renderer/pepper/plugin_instance_throttler_impl.cc b/content/renderer/pepper/plugin_instance_throttler_impl.cc
index 19e731cbd7382f4dcef2f27394ca2b9f71a9c29d..902670f9775d6bd149098d1ccdf29fe39e005ac6 100644
--- a/content/renderer/pepper/plugin_instance_throttler_impl.cc
+++ b/content/renderer/pepper/plugin_instance_throttler_impl.cc
@@ -153,7 +153,8 @@ void PluginInstanceThrottlerImpl::Initialize(
gfx::Size(roundf(unobscured_size.width() / zoom_factor),
roundf(unobscured_size.height() / zoom_factor)),
record_decision_);
- if (status != RenderFrame::CONTENT_STATUS_PERIPHERAL) {
+ if (status != RenderFrame::CONTENT_STATUS_PERIPHERAL &&
+ status != RenderFrame::CONTENT_STATUS_TINY) {
DCHECK_NE(THROTTLER_STATE_MARKED_ESSENTIAL, state_);
state_ = THROTTLER_STATE_MARKED_ESSENTIAL;
for (auto& observer : observer_list_)
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/pepper/plugin_power_saver_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698