summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.h
blob: 11e6b7365711b0fd461ba887ce4fc1f0ff8ec58c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 */