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

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

Issue 9615042: Drop accelerated surface when switching off accelerated compositor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_win.cc (revision 124715)
+++ content/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -2137,6 +2137,11 @@
SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
}
} else {
+ // Drop the backing store for the accelerated surface when the accelerated
+ // compositor is disabled. Otherwise, a flash of the last presented frame
+ // could appear when it is next enabled.
+ if (accelerated_surface_.get())
+ accelerated_surface_->Suspend();
hide_compositor_window_at_next_paint_ = true;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698