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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 545041: Adds a sync to glFinish and SwapBuffers at the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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
Index: gpu/command_buffer/client/gles2_implementation.cc
===================================================================
--- gpu/command_buffer/client/gles2_implementation.cc (revision 36127)
+++ gpu/command_buffer/client/gles2_implementation.cc (working copy)
@@ -66,6 +66,16 @@
helper_->DrawElements(mode, count, type, ToGLuint(indices));
}
+void GLES2Implementation::Finish() {
+ helper_->Finish();
+ WaitForCmd();
+}
+
+void GLES2Implementation::SwapBuffers() {
+ helper_->SwapBuffers();
+ Finish();
+}
+
GLint GLES2Implementation::GetAttribLocation(
GLuint program, const char* name) {
helper_->GetAttribLocationImmediate(
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698