aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgshadereffectsource_p.h
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-05-10 16:38:44 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-05-10 16:57:59 +0200
commit67d5026372cf8a7c9319703fc58073910820b740 (patch)
treedb76f774c513295e1b1ef7cb094254707bebc093 /src/declarative/items/qsgshadereffectsource_p.h
parent79f6db432ef9a05586176ad4e2fd3ed83be6f53c (diff)
Replaced grab() with scheduleUpdate().
Replaced the synchronous function grab() with an asynchronous function scheduleUpdate() in QShaderEffectSource because synchronous grabbing doesn't work with threaded rendering.
Diffstat (limited to 'src/declarative/items/qsgshadereffectsource_p.h')
-rw-r--r--src/declarative/items/qsgshadereffectsource_p.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/declarative/items/qsgshadereffectsource_p.h b/src/declarative/items/qsgshadereffectsource_p.h
index 891cc1ebba..5842ec7295 100644
--- a/src/declarative/items/qsgshadereffectsource_p.h
+++ b/src/declarative/items/qsgshadereffectsource_p.h
@@ -112,7 +112,7 @@ public:
bool recursive() const { return bool(m_recursive); }
void setRecursive(bool recursive);
- void grab();
+ void scheduleUpdate();
Q_SIGNALS:
void textureChanged();
@@ -121,6 +121,8 @@ public Q_SLOTS:
void markDirtyTexture();
private:
+ void grab();
+
QSGNode *m_item;
QRectF m_rect;
QSize m_size;
@@ -141,6 +143,7 @@ private:
uint m_dirtyTexture : 1;
uint m_multisamplingSupportChecked : 1;
uint m_multisampling : 1;
+ uint m_grab : 1;
};
class QSGShaderEffectSource : public QSGItem, public QSGTextureProvider
@@ -204,7 +207,7 @@ public:
QSGTexture *texture() const;
const char *textureChangedSignal() const { return SIGNAL(textureChanged()); }
- Q_INVOKABLE void grab();
+ Q_INVOKABLE void scheduleUpdate();
Q_SIGNALS:
void wrapModeChanged();
@@ -233,6 +236,7 @@ private:
uint m_hideSource : 1;
uint m_mipmap : 1;
uint m_recursive : 1;
+ uint m_grab : 1;
};
QT_END_NAMESPACE