summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/render_widget_host_impl.h
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-21 11:02:50 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-21 11:02:50 +0000
commit55e074ea463579aaa298986e46def3bc9820578e (patch)
tree304bed888b37f6bbb8953b55bad7714dd0506d36 /content/browser/renderer_host/render_widget_host_impl.h
parent63eb9552dd99ad46e77132219bc6479fc061eb2d (diff)
downloadchromium_src-55e074ea463579aaa298986e46def3bc9820578e.zip
chromium_src-55e074ea463579aaa298986e46def3bc9820578e.tar.gz
chromium_src-55e074ea463579aaa298986e46def3bc9820578e.tar.bz2
CoreAnimation: Don't wait for frames during draw
Before this change, we would wait for new frames to come in during the display function for a layer. This is bad in that the display function should be quick and in that getting the new frame may mess up state that the display function is relying on. This moves the stall to the view's setFrameSize andn WasShown function, where no graphics state is being relied on. This functionality (keeping the surface and the window size in sync) had been disabled on 10.6 due to crashes being detected on the crash server where the current GL context before and after the run loop pump did not line up. This can now be re-enabled on 10.6. BUG=245900 Review URL: https://codereview.chromium.org/196743009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258512 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_widget_host_impl.h')
-rw-r--r--content/browser/renderer_host/render_widget_host_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 52b3e2b..1e4d2a8 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -247,6 +247,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// Indicates if the page has finished loading.
void SetIsLoading(bool is_loading);
+ // Pause for a moment to wait for pending repaint or resize messages sent to
+ // the renderer to arrive. If pending resize messages are for an old window
+ // size, then also pump through a new resize message if there is time.
+ void PauseForPendingResizeOrRepaints();
+
// Check for the existance of a BackingStore of the given |desired_size| and
// return it if it exists. If the BackingStore is GPU, true is returned and
// |*backing_store| is set to NULL.