fbaccel: use the same blit-limiting hack on spark and azbox

TODO: test on other architectures, simplify code
This commit is contained in:
Stefan Seyfried
2013-09-22 14:28:23 +02:00
parent 377761ce52
commit 80b48dea17
2 changed files with 7 additions and 9 deletions

View File

@@ -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;