[directfb] Rename class from WindowSurface to BackingStore
Catch up with the naming by renaming the file from windowsurface to backingstore, update the class names and include files. Change-Id: I1b16826b60c19490946a77f61518e18f8099adce Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
This commit is contained in:
parent
ab50b60f5c
commit
d8fc8aa585
@ -16,14 +16,14 @@ LIBS += $$DIRECTFB_LIBS
|
||||
|
||||
SOURCES = main.cpp \
|
||||
qdirectfbintegration.cpp \
|
||||
qdirectfbwindowsurface.cpp \
|
||||
qdirectfbbackingstore.cpp \
|
||||
qdirectfbblitter.cpp \
|
||||
qdirectfbconvenience.cpp \
|
||||
qdirectfbinput.cpp \
|
||||
qdirectfbcursor.cpp \
|
||||
qdirectfbwindow.cpp
|
||||
HEADERS = qdirectfbintegration.h \
|
||||
qdirectfbwindowsurface.h \
|
||||
qdirectfbbackingstore.h \
|
||||
qdirectfbblitter.h \
|
||||
qdirectfbconvenience.h \
|
||||
qdirectfbinput.h \
|
||||
|
@ -39,7 +39,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "qdirectfbwindowsurface.h"
|
||||
#include "qdirectfbbackingstore.h"
|
||||
#include "qdirectfbintegration.h"
|
||||
#include "qdirectfbblitter.h"
|
||||
#include "qdirectfbconvenience.h"
|
||||
@ -49,7 +49,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QDirectFbWindowSurface::QDirectFbWindowSurface(QWindow *window)
|
||||
QDirectFbBackingStore::QDirectFbBackingStore(QWindow *window)
|
||||
: QPlatformBackingStore(window), m_pixmap(0), m_pmdata(0), m_dfbSurface(0)
|
||||
{
|
||||
|
||||
@ -68,17 +68,17 @@ QDirectFbWindowSurface::QDirectFbWindowSurface(QWindow *window)
|
||||
m_pixmap = new QPixmap(m_pmdata);
|
||||
}
|
||||
|
||||
QDirectFbWindowSurface::~QDirectFbWindowSurface()
|
||||
QDirectFbBackingStore::~QDirectFbBackingStore()
|
||||
{
|
||||
delete m_pixmap;
|
||||
}
|
||||
|
||||
QPaintDevice *QDirectFbWindowSurface::paintDevice()
|
||||
QPaintDevice *QDirectFbBackingStore::paintDevice()
|
||||
{
|
||||
return m_pixmap;
|
||||
}
|
||||
|
||||
void QDirectFbWindowSurface::flush(QWindow *, const QRegion ®ion, const QPoint &offset)
|
||||
void QDirectFbBackingStore::flush(QWindow *, const QRegion ®ion, const QPoint &offset)
|
||||
{
|
||||
m_pmdata->blittable()->unlock();
|
||||
|
||||
@ -90,7 +90,7 @@ void QDirectFbWindowSurface::flush(QWindow *, const QRegion ®ion, const QPoin
|
||||
}
|
||||
}
|
||||
|
||||
void QDirectFbWindowSurface::resize(const QSize &size, const QRegion& reg)
|
||||
void QDirectFbBackingStore::resize(const QSize &size, const QRegion& reg)
|
||||
{
|
||||
QPlatformBackingStore::resize(size, reg);
|
||||
|
||||
@ -108,7 +108,7 @@ static inline void scrollSurface(IDirectFBSurface *surface, const QRect &r, int
|
||||
surface->Flip(surface, ®ion, DFBSurfaceFlipFlags(DSFLIP_BLIT));
|
||||
}
|
||||
|
||||
bool QDirectFbWindowSurface::scroll(const QRegion &area, int dx, int dy)
|
||||
bool QDirectFbBackingStore::scroll(const QRegion &area, int dx, int dy)
|
||||
{
|
||||
m_pmdata->blittable()->unlock();
|
||||
|
||||
@ -127,12 +127,12 @@ bool QDirectFbWindowSurface::scroll(const QRegion &area, int dx, int dy)
|
||||
return true;
|
||||
}
|
||||
|
||||
void QDirectFbWindowSurface::beginPaint(const QRegion ®ion)
|
||||
void QDirectFbBackingStore::beginPaint(const QRegion ®ion)
|
||||
{
|
||||
Q_UNUSED(region);
|
||||
}
|
||||
|
||||
void QDirectFbWindowSurface::endPaint(const QRegion ®ion)
|
||||
void QDirectFbBackingStore::endPaint(const QRegion ®ion)
|
||||
{
|
||||
Q_UNUSED(region);
|
||||
}
|
@ -49,11 +49,11 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QDirectFbWindowSurface : public QPlatformBackingStore
|
||||
class QDirectFbBackingStore : public QPlatformBackingStore
|
||||
{
|
||||
public:
|
||||
QDirectFbWindowSurface(QWindow *window);
|
||||
~QDirectFbWindowSurface();
|
||||
QDirectFbBackingStore(QWindow *window);
|
||||
~QDirectFbBackingStore();
|
||||
|
||||
QPaintDevice *paintDevice();
|
||||
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset);
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "qdirectfbintegration.h"
|
||||
#include "qdirectfbwindowsurface.h"
|
||||
#include "qdirectfbbackingstore.h"
|
||||
#include "qdirectfbblitter.h"
|
||||
#include "qdirectfbconvenience.h"
|
||||
#include "qdirectfbcursor.h"
|
||||
@ -143,7 +143,7 @@ QAbstractEventDispatcher *QDirectFbIntegration::guiThreadEventDispatcher() const
|
||||
|
||||
QPlatformBackingStore *QDirectFbIntegration::createPlatformBackingStore(QWindow *window) const
|
||||
{
|
||||
return new QDirectFbWindowSurface(window);
|
||||
return new QDirectFbBackingStore(window);
|
||||
}
|
||||
|
||||
QPlatformFontDatabase *QDirectFbIntegration::fontDatabase() const
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "qdirectfbwindow.h"
|
||||
#include "qdirectfbinput.h"
|
||||
|
||||
#include "qdirectfbwindowsurface.h"
|
||||
#include "qdirectfbbackingstore.h"
|
||||
|
||||
#include <directfb.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user