Index: content/renderer/pepper/pepper_plugin_instance_impl.cc |
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
index 98ca698ed56415c5ab34ced2dbebc7737345efd6..bab990eb1cee219c64116045c5e432450840b03c 100644 |
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
@@ -1701,6 +1701,12 @@ void PepperPluginInstanceImpl::SendDidChangeView() { |
UpdateLayerTransform(); |
+ if (bound_graphics_2d_platform_ && |
+ (!view_data_.is_page_visible || |
+ PP_ToGfxRect(view_data_.clip_rect).IsEmpty())) { |
+ bound_graphics_2d_platform_->ClearCache(); |
+ } |
+ |
// It's possible that Delete() has been called but the renderer hasn't |
// released its reference to this object yet. |
if (instance_interface_) { |