aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/context2d/qquickcanvasitem_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-12-02 07:59:44 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-02 09:05:05 +0100
commite32eb8ee5d413ab6a908c2e3274645a489cb9df2 (patch)
treea6e0491905ad6af212f40e41ee2e2ed5bb0b90ef /src/declarative/items/context2d/qquickcanvasitem_p.h
parent310618d504aed92ac532c69471ef196829b3f07c (diff)
Remove QSGContext and QSGTexture from QDeclarativePixmapData
In order to cleanly support multiple windows we need to not have the QSGContext reference in QDeclarativeEngine and we need to be able to have one copy of the texture for each QSGContext that is not sharing when we have multiple windows. This also makes it easier to the release graphical resources from a running application, which is another feature that we want to eventually implement. This patch does remove an adaptation feature which is the decodeToTexture, which seemed like a good idea at the time but in hindsight has not been used for anything. Edit: resolved conflict in qquickimage.cpp Edit: updated QDeclarativePixmap testcase Edit: updated QQuickImage testcase Edit: Rebased on top of QDeclarativePixmapCacheChanges Change-Id: Ifc61dd8158d3f841437d029b6031a91196145517 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/items/context2d/qquickcanvasitem_p.h')
-rw-r--r--src/declarative/items/context2d/qquickcanvasitem_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/items/context2d/qquickcanvasitem_p.h b/src/declarative/items/context2d/qquickcanvasitem_p.h
index e0261192ed..293434209a 100644
--- a/src/declarative/items/context2d/qquickcanvasitem_p.h
+++ b/src/declarative/items/context2d/qquickcanvasitem_p.h
@@ -102,6 +102,7 @@ public:
QImage toImage(const QRectF& region = QRectF()) const;
QImage loadedImage(const QUrl& url);
+
Q_SIGNALS:
void paint(QDeclarativeV8Handle context, const QRect &region);
void painted();