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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 12079065: cc: Flush after context switch (Qualcomm WAR) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snowclamp_simple
Patch Set: remove extraneous whitespace change Created 7 years, 11 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 | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 0547749384a06056ac1235ccac5ad077779f800d..3b441a2c76688e8432d3569c147e9dda7a60b69e 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2737,6 +2737,9 @@ bool GLES2DecoderImpl::MakeCurrent() {
framebuffer_manager()->IncFramebufferStateChangeCount();
}
+ if (workarounds().flush_on_context_switch)
+ glFlush();
+
return true;
}
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698