gallium/targets: Haiku softpipe, perform better framebuffer validation
[mesa.git] / src / gallium / targets / haiku-softpipe / GalliumFramebuffer.h
1 /*
2 * Copyright 2012, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 * Alexander von Gluck IV, kallisti5@unixzen.com
7 */
8 #ifndef GALLIUMFRAMEBUFFER_H
9 #define GALLIUMFRAMEBUFFER_H
10
11
12 extern "C" {
13 #include "os/os_thread.h"
14 #include "pipe/p_screen.h"
15 #include "state_tracker/st_api.h"
16 }
17
18
19 class GalliumFramebuffer {
20 public:
21 GalliumFramebuffer(struct st_visual* visual,
22 void* privateContext);
23 ~GalliumFramebuffer();
24 status_t Lock();
25 status_t Unlock();
26
27 struct st_framebuffer_iface* fBuffer;
28
29 private:
30 pipe_mutex fMutex;
31 };
32
33
34 #endif /* GALLIUMFRAMEBUFFER_H */