fbaccel: add hack on spark to avoid too frequent blitting

This commit is contained in:
Stefan Seyfried
2013-09-01 18:23:33 +02:00
parent ff46b6906d
commit a5999ea165
2 changed files with 73 additions and 0 deletions

View File

@@ -36,6 +36,10 @@
#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
@@ -64,6 +68,9 @@ typedef struct fb_var_screeninfo t_fb_var_screeninfo;
class CFrameBuffer;
class CFbAccel
#if HAVE_SPARK_HARDWARE
: public OpenThreads::Thread
#endif
{
private:
CFrameBuffer *fb;
@@ -76,6 +83,14 @@ 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;