summaryrefslogtreecommitdiff
path: root/glxtrace.py
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-11-24 19:12:34 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-11-24 19:12:34 +0000
commit6b490424d2b1a6036a6804dcea2cb0fe7845b9e5 (patch)
treee185d9e685ecd70e23c45a6f439682045704942c /glxtrace.py
parente935ee1015d5162e02d90be7b52267194231e038 (diff)
Kill glsnapshot.
The ability of taking snaphshots while tracing was meant for test automation of apitrace itself, but even so, it was not very robust -- apps that used glXCreateWindow would not find be able to determine window id --, so remove this now that a custom made test suite is being developed.
Diffstat (limited to 'glxtrace.py')
-rw-r--r--glxtrace.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/glxtrace.py b/glxtrace.py
index 3e91f00..be577cb 100644
--- a/glxtrace.py
+++ b/glxtrace.py
@@ -41,23 +41,6 @@ class GlxTracer(GlTracer):
# The symbols visible in libGL.so can vary, so expose them all
return True
- def trace_function_impl_body(self, function):
- GlTracer.trace_function_impl_body(self, function)
-
- # Take snapshots
- if function.name == 'glXSwapBuffers':
- print ' glsnapshot::snapshot(__call);'
- if function.name in ('glFinish', 'glFlush'):
- print ' GLint __draw_framebuffer = 0;'
- print ' __glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &__draw_framebuffer);'
- print ' if (__draw_framebuffer == 0) {'
- print ' GLint __draw_buffer = GL_NONE;'
- print ' __glGetIntegerv(GL_DRAW_BUFFER, &__draw_buffer);'
- print ' if (__draw_buffer == GL_FRONT) {'
- print ' glsnapshot::snapshot(__call);'
- print ' }'
- print ' }'
-
def wrap_ret(self, function, instance):
GlTracer.wrap_ret(self, function, instance)
@@ -83,7 +66,6 @@ if __name__ == '__main__':
print
print '#include "glproc.hpp"'
print '#include "glsize.hpp"'
- print '#include "glsnapshot.hpp"'
print
print 'static __GLXextFuncPtr __unwrap_proc_addr(const GLubyte * procName, __GLXextFuncPtr procPtr);'
print