aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qquickcanvas_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-11-16 15:39:45 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-18 15:44:20 +0100
commit62a31676830aca745df23a5dc18b59c4211eea56 (patch)
tree4e04a80a8ff537e06efe9dfaeddf4a7ee5d56058 /src/declarative/items/qquickcanvas_p.h
parentb37c6b05a363ce7a7074e1e6645e168f563c66d8 (diff)
Copy QSGEngine functions to QQuickCanvas.
Long term we intend to remove the QSGEngine class all together so this is the first step. It duplicates some of the logic but doesn't break anything. Also including an example on how to use it in examples/declarative/openglunderqml Change-Id: I69ed93ec5fa1b5c4c746169306d38f8d6ce80477 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/declarative/items/qquickcanvas_p.h')
-rw-r--r--src/declarative/items/qquickcanvas_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/items/qquickcanvas_p.h b/src/declarative/items/qquickcanvas_p.h
index 702234d9e8..fdfe0911f5 100644
--- a/src/declarative/items/qquickcanvas_p.h
+++ b/src/declarative/items/qquickcanvas_p.h
@@ -157,9 +157,12 @@ public:
void updateEffectiveOpacityRoot(QQuickItem *, qreal);
void updateDirtyNode(QQuickItem *);
+ QSGEngine *engine;
QSGContext *context;
+ QColor clearColor;
uint vsyncAnimations : 1;
+ uint clearBeforeRendering : 1;
QQuickCanvasRenderLoop *thread;
QSize widgetSize;