summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/trace/tr_winsys.h
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-14 12:50:52 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-15 10:35:18 +0100
commit196167e9d5c84f9f6dfe6f15b3e2f2c3ec6825dc (patch)
treead5899807c7bb563edc35e5b7f62f2a2abe96ab7 /src/gallium/drivers/trace/tr_winsys.h
parent2f34c851c01321b177bc3074755e97af270ec994 (diff)
trace: Make stream a global variable.
This not only simplifies the code, but allows to use atexit() to ensure the log is closed when applications don't exit cleanly.
Diffstat (limited to 'src/gallium/drivers/trace/tr_winsys.h')
-rw-r--r--src/gallium/drivers/trace/tr_winsys.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/trace/tr_winsys.h b/src/gallium/drivers/trace/tr_winsys.h
index 704d2c57c8..2218117347 100644
--- a/src/gallium/drivers/trace/tr_winsys.h
+++ b/src/gallium/drivers/trace/tr_winsys.h
@@ -35,7 +35,6 @@
struct hash_table;
-struct trace_stream;
struct trace_winsys
@@ -44,8 +43,6 @@ struct trace_winsys
struct pipe_winsys *winsys;
- struct trace_stream *stream;
-
struct hash_table *buffer_maps;
};
@@ -60,8 +57,7 @@ trace_winsys(struct pipe_winsys *winsys)
struct pipe_winsys *
-trace_winsys_create(struct trace_stream *stream,
- struct pipe_winsys *winsys);
+trace_winsys_create(struct pipe_winsys *winsys);
#endif /* TR_WINSYS_H_ */