summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h')
-rw-r--r--src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h b/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h
new file mode 100644
index 00000000000..11e6b736571
--- /dev/null
+++ b/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2012, Haiku, Inc. All Rights Reserved.
+ * Distributed under the terms of the MIT License.
+ *
+ * Authors:
+ * Alexander von Gluck IV, [email protected]
+ */
+#ifndef GALLIUMFRAMEBUFFER_H
+#define GALLIUMFRAMEBUFFER_H
+
+
+extern "C" {
+#include "os/os_thread.h"
+#include "pipe/p_screen.h"
+#include "state_tracker/st_api.h"
+}
+
+
+class GalliumFramebuffer {
+public:
+ GalliumFramebuffer(struct st_visual* visual,
+ void* privateContext);
+ ~GalliumFramebuffer();
+ status_t Lock();
+ status_t Unlock();
+
+ struct st_framebuffer_iface* fBuffer;
+
+private:
+ pipe_mutex fMutex;
+};
+
+
+#endif /* GALLIUMFRAMEBUFFER_H */