diff options
author | Gunnar Sletta <gunnar@sletta.org> | 2014-09-26 19:43:52 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar@sletta.org> | 2014-09-30 20:27:01 +0200 |
commit | 125c96476e98cb393d2cf133a8245cb0672109a1 (patch) | |
tree | b4195f11f49a951cce5ef3764210fd210d25c9c8 /src/quick/items/context2d/qquickcanvasitem.cpp | |
parent | 0322dddbca7cb0024d2b01fcfa25f996788ba57d (diff) |
Make Canvas use texture atlas for smallish Image based canvases.
This makes Canvas with Image batchable in the renderer which
means that it is feasible to have 100s of small Canvases in a
scene, for instance as static icons rendered with a bit of
script.
Change-Id: I3ad57360d632b7093fd6993afa88ed35c21d178a
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/items/context2d/qquickcanvasitem.cpp')
-rw-r--r-- | src/quick/items/context2d/qquickcanvasitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/context2d/qquickcanvasitem.cpp b/src/quick/items/context2d/qquickcanvasitem.cpp index 77a405907e..15eb28350e 100644 --- a/src/quick/items/context2d/qquickcanvasitem.cpp +++ b/src/quick/items/context2d/qquickcanvasitem.cpp @@ -749,7 +749,7 @@ QSGNode *QQuickCanvasItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData QQuickContext2D *ctx = qobject_cast<QQuickContext2D *>(d->context); QQuickContext2DTexture *factory = ctx->texture(); - QSGTexture *texture = factory->textureForNextFrame(node->texture()); + QSGTexture *texture = factory->textureForNextFrame(node->texture(), window()); if (!texture) { delete node; d->node = 0; |