mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 10:51:12 +02:00
fbaccel: use the same blit-limiting hack on spark and azbox
TODO: test on other architectures, simplify code
This commit is contained in:
@@ -36,10 +36,8 @@
|
||||
#include <vector>
|
||||
#include <OpenThreads/Mutex>
|
||||
#include <OpenThreads/ScopedLock>
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
#include <OpenThreads/Thread>
|
||||
#include <OpenThreads/Condition>
|
||||
#endif
|
||||
|
||||
#define fb_pixel_t uint32_t
|
||||
|
||||
@@ -69,9 +67,7 @@ typedef struct fb_var_screeninfo t_fb_var_screeninfo;
|
||||
|
||||
class CFrameBuffer;
|
||||
class CFbAccel
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
: public OpenThreads::Thread
|
||||
#endif
|
||||
{
|
||||
private:
|
||||
CFrameBuffer *fb;
|
||||
@@ -84,14 +80,12 @@ class CFbAccel
|
||||
void add_gxa_sync_marker(void);
|
||||
#endif /* USE_NEVIS_GXA */
|
||||
void setColor(fb_pixel_t col);
|
||||
#if HAVE_SPARK_HARDWARE
|
||||
void run(void);
|
||||
void _blit(void);
|
||||
bool blit_thread;
|
||||
bool blit_pending;
|
||||
OpenThreads::Condition blit_cond;
|
||||
OpenThreads::Mutex blit_mutex;
|
||||
#endif
|
||||
public:
|
||||
fb_pixel_t *backbuffer;
|
||||
fb_pixel_t *lbb;
|
||||
|
Reference in New Issue
Block a user