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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

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
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/build_gles2_cmd_buffer.py
===================================================================
--- gpu/command_buffer/build_gles2_cmd_buffer.py (revision 36127)
+++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
@@ -859,6 +859,7 @@
'cmd_args': 'GLenum mode, GLsizei count, GLenum type, GLuint index_offset',
},
'EnableVertexAttribArray': {'DecoderFunc': 'DoEnableVertexAttribArray'},
+ 'Finish': {'ImplFunc': False},
'FramebufferRenderbuffer': {'DecoderFunc': 'glFramebufferRenderbufferEXT'},
'FramebufferTexture2D': {'DecoderFunc': 'glFramebufferTexture2DEXT'},
'GenerateMipmap': {'DecoderFunc': 'glGenerateMipmapEXT'},
@@ -954,7 +955,11 @@
'cmd_args': 'GLuint indx, GLint size, GLenum type, GLboolean normalized, '
'GLsizei stride, GLuint offset',
},
- 'SwapBuffers': {'DecoderFunc': 'DoSwapBuffers', 'unit_test': False},
+ 'SwapBuffers': {
+ 'ImplFunc': False,
+ 'DecoderFunc': 'DoSwapBuffers',
+ 'unit_test': False,
+ },
}
@@ -1315,7 +1320,8 @@
def WriteGLES2ImplementationHeader(self, func, file):
"""Writes the GLES2 Implemention declaration."""
- if func.can_auto_generate:
+ impl_func = func.GetInfo('ImplFunc')
+ if func.can_auto_generate and (impl_func == None or impl_func == True):
file.Write("%s %s(%s) {\n" %
(func.return_type, func.original_name,
func.MakeTypedOriginalArgString("")))
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698