Index: content/renderer/pepper/pepper_graphics_2d_host.cc |
diff --git a/content/renderer/pepper/pepper_graphics_2d_host.cc b/content/renderer/pepper/pepper_graphics_2d_host.cc |
index 19a295f5eb17f5d6487fc0826e77302c55c72841..feb941989f489619cd8be469e6fe1068275a8631 100644 |
--- a/content/renderer/pepper/pepper_graphics_2d_host.cc |
+++ b/content/renderer/pepper/pepper_graphics_2d_host.cc |
@@ -15,7 +15,7 @@ |
#include "content/public/renderer/renderer_ppapi_host.h" |
#include "content/renderer/pepper/gfx_conversion.h" |
#include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
-#include "content/renderer/pepper/pepper_plugin_instance_throttler.h" |
+#include "content/renderer/pepper/plugin_instance_throttler_impl.h" |
#include "content/renderer/pepper/ppb_image_data_impl.h" |
#include "content/renderer/render_thread_impl.h" |
#include "ppapi/c/pp_bool.h" |
@@ -688,8 +688,10 @@ int32_t PepperGraphics2DHost::Flush(PP_Resource* old_image_data) { |
need_flush_ack_ = true; |
} |
- if (bound_instance_ && bound_instance_->throttler()) |
+ if (bound_instance_ && bound_instance_->throttler() && |
+ bound_instance_->throttler()->needs_representative_keyframe()) { |
bound_instance_->throttler()->OnImageFlush(image_data_->GetMappedBitmap()); |
+ } |
return PP_OK_COMPLETIONPENDING; |
} |