From 8730236d1a900c9512a9ef92c08034f0223bcf92 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 3 Oct 2013 01:22:48 +0000 Subject: haiku: Add first Haiku renderer (softpipe) * This shared library gets parsed by the system as a system "add-on" --- .../targets/haiku-softpipe/GalliumFramebuffer.h | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h (limited to 'src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h') 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, kallisti5@unixzen.com + */ +#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 */ -- cgit v1.2.3