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

Unified Diff: content/common/gpu/image_transport_surface_win.cc

Issue 10825066: Don't allow processing of a command buffer to overlap with a previous swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add bug url Created 8 years, 5 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/common/gpu/image_transport_surface_win.cc
diff --git a/content/common/gpu/image_transport_surface_win.cc b/content/common/gpu/image_transport_surface_win.cc
index a5f731aeb5ff513c0fd0084562246a5619293072..10a9b5da66298ebacd094ffa6f2420a960657793 100644
--- a/content/common/gpu/image_transport_surface_win.cc
+++ b/content/common/gpu/image_transport_surface_win.cc
@@ -199,6 +199,10 @@ void PbufferImageTransportSurface::SendBuffersSwapped() {
DCHECK(!is_swap_buffers_pending_);
is_swap_buffers_pending_ = true;
+
+ // Pause all processing of this command buffer.
+ // http://code.google.com/p/chromium/issues/detail?id=135546
+ DeferDraws();
}
void PbufferImageTransportSurface::OnBufferPresented(uint32 sync_point) {
« 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