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 fcf246c66a4d0efb0334d0c456b99720f5702c44..94807ef0e84a513680a02f72f2b268a065b0b1fb 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -738,6 +738,14 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
// True when waiting for RESIZE_ACK. |
bool resize_ack_pending_; |
+ // Cached copy of the screen info so that it doesn't need to be updated every |
+ // time the window is resized. |
+ scoped_ptr<WebKit::WebScreenInfo> screen_info_; |
+ |
+ // Set if screen_info_ may have changed and should be recomputed and force a |
+ // resize message. |
+ bool screen_info_out_of_date_; |
+ |
// The current size of the RenderWidget. |
gfx::Size current_size_; |