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

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

Issue 849723002: Plugin Power Saver: Make PepperPluginInstanceThrottler interface public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: content/renderer/pepper/ppb_graphics_3d_impl.cc
diff --git a/content/renderer/pepper/ppb_graphics_3d_impl.cc b/content/renderer/pepper/ppb_graphics_3d_impl.cc
index 64f2ed42225a952a7d5c49d0430956a9c5699b20..677e9fd8c466c742281e2e69af155bfc5135f3c5 100644
--- a/content/renderer/pepper/ppb_graphics_3d_impl.cc
+++ b/content/renderer/pepper/ppb_graphics_3d_impl.cc
@@ -12,9 +12,9 @@
#include "content/common/gpu/client/gpu_channel_host.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/web_preferences.h"
+#include "content/public/renderer/plugin_instance_throttler.h"
#include "content/renderer/pepper/host_globals.h"
#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
-#include "content/renderer/pepper/pepper_plugin_instance_throttler.h"
#include "content/renderer/pepper/plugin_module.h"
#include "content/renderer/render_thread_impl.h"
#include "content/renderer/render_view_impl.h"
@@ -242,7 +242,7 @@ bool PPB_Graphics3D_Impl::InitRaw(
return false;
// Force SW rendering for keyframe extraction to avoid pixel reads from VRAM.
- PepperPluginInstanceThrottler* throttler = plugin_instance->throttler();
+ PluginInstanceThrottler* throttler = plugin_instance->throttler();
if (throttler && throttler->needs_representative_keyframe())
return false;

Powered by Google App Engine
This is Rietveld 408576698