widgets: Class initialize QWidgetRepaintManager members

Change-Id: Icc06ae8f5f542810d651e4834055cbcd1c1a4e2e
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
bb10
Tor Arne Vestbø 2019-08-22 16:43:05 +02:00
parent 1c2bcdb57a
commit 655e8b6eab
2 changed files with 13 additions and 12 deletions

View File

@ -112,12 +112,8 @@ private:
// ---------------------------------------------------------------------------
QWidgetRepaintManager::QWidgetRepaintManager(QWidget *topLevel)
: tlw(topLevel),
updateRequestSent(0),
textureListWatcher(0),
perfFrames(0)
: tlw(topLevel), store(tlw->backingStore())
{
store = tlw->backingStore();
Q_ASSERT(store);
// Ensure all existing subsurfaces and static widgets are added to their respective lists.

View File

@ -126,19 +126,24 @@ private:
QRect topLevelRect() const { return tlw->data->crect; }
QWidget *tlw;
QRegion dirtyOnScreen; // needsFlush
QWidget *tlw = nullptr;
QBackingStore *store = nullptr;
QRegion dirty; // needsRepaint
QRegion dirtyOnScreen; // needsFlush
QVector<QWidget *> dirtyWidgets;
QVector<QWidget *> dirtyRenderToTextureWidgets;
QVector<QWidget *> dirtyOnScreenWidgets;
QList<QWidget *> staticWidgets;
QBackingStore *store;
uint updateRequestSent : 1;
QPlatformTextureListWatcher *textureListWatcher;
QList<QWidget *> staticWidgets;
QPlatformTextureListWatcher *textureListWatcher = nullptr;
bool updateRequestSent = false;
QElapsedTimer perfTime;
int perfFrames;
int perfFrames = 0;
Q_DISABLE_COPY_MOVE(QWidgetRepaintManager)
};