Index: content/browser/renderer_host/render_widget_host_impl.h |
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h |
index 4f25ec790c9b4e3dd17b01c422d3cd1aa9c07734..4eeaa44a4a0a65965289c60a4a04441bf482171b 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -412,6 +412,13 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
virtual void RemoveLayer(WebKit::WebLayer* layer) {} |
#endif |
+ // Resets state variables related to tracking pending size and painting. |
+ // |
+ // We need to reset these flags when we want to repaint the contents of |
+ // browser plugin in this RWH. Resetting these flags will ensure we ignore |
+ // any previous pending acks that are not relevant upon repaint. |
+ void ResetSizeAndRepaintPendingFlags(); |
+ |
protected: |
virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; |