Index: content/renderer/pepper/plugin_instance_throttler_impl.h |
diff --git a/content/renderer/pepper/plugin_instance_throttler_impl.h b/content/renderer/pepper/plugin_instance_throttler_impl.h |
index 0bcad2f60dcade53727b175c2fac0b4ac3694803..54f17cfff9bdae5ac0f868fa777ef378d5fe78d2 100644 |
--- a/content/renderer/pepper/plugin_instance_throttler_impl.h |
+++ b/content/renderer/pepper/plugin_instance_throttler_impl.h |
@@ -26,7 +26,7 @@ class RenderFrameImpl; |
class CONTENT_EXPORT PluginInstanceThrottlerImpl |
: public PluginInstanceThrottler { |
public: |
- PluginInstanceThrottlerImpl(bool power_saver_enabled); |
+ PluginInstanceThrottlerImpl(); |
~PluginInstanceThrottlerImpl() override; |
@@ -47,8 +47,7 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl |
} |
bool power_saver_enabled() const { |
- return state_ == THROTTLER_STATE_AWAITING_KEYFRAME || |
- state_ == THROTTLER_STATE_PLUGIN_THROTTLED; |
+ return state_ != THROTTLER_STATE_MARKED_ESSENTIAL; |
} |
// Throttler needs to be initialized with the real plugin's view bounds. |
@@ -68,8 +67,6 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl |
friend class PluginInstanceThrottlerImplTest; |
enum ThrottlerState { |
- // Power saver is disabled, but the plugin instance is still peripheral. |
- THROTTLER_STATE_POWER_SAVER_DISABLED, |
// Plugin has been found to be peripheral, Plugin Power Saver is enabled, |
// and throttler is awaiting a representative keyframe. |
THROTTLER_STATE_AWAITING_KEYFRAME, |