Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 10382213: Defer CGLFlushDrawable until OSX-requested drawRect to avoid spinning when window is obscured. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed animation halt during resize Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index e22b0432aba31b7b1e5c1b63eaf8354d39f294cb..ebb94b4d1c86546e056419ee15a9111d7ed08966 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -615,6 +615,8 @@ BackingStore* RenderWidgetHostImpl::GetBackingStore(bool force_create) {
do {
TRACE_EVENT0("renderer_host", "GetBackingStore::WaitForUpdate");
+ view_->AboutToWaitForBackingStoreMsg();
+
// When we have asked the RenderWidget to resize, and we are still waiting
// on a response, block for a little while to see if we can't get a response
// before returning the old (incorrectly sized) backing store.

Powered by Google App Engine
This is Rietveld 408576698