aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/context2d/qquickcontext2dtexture.cpp
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-06-04 16:34:17 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-05 12:32:58 +0200
commit1dcfa8aa2ae6460f26d9843c197532024447e43b (patch)
tree10b5243607d603443a4abe9f89e2a453757ffaeb /src/quick/items/context2d/qquickcontext2dtexture.cpp
parent332fe582d1bd590b59618cc7b732be9bf7f9f475 (diff)
Introduce QQuickCanvasPixmap
1. QQuickPixmap now only store textures instead of QImage data, however context2d still need to access the QImage in some places, so cache the loaded images to avoid the expensive GL readback operations. 2. Use texture directly if the render target is FBO. Change-Id: I6228011e5698fa00f2e3420a3a4a305995b8a238 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Diffstat (limited to 'src/quick/items/context2d/qquickcontext2dtexture.cpp')
-rw-r--r--src/quick/items/context2d/qquickcontext2dtexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/context2d/qquickcontext2dtexture.cpp b/src/quick/items/context2d/qquickcontext2dtexture.cpp
index 7778a64962..2cb183d715 100644
--- a/src/quick/items/context2d/qquickcontext2dtexture.cpp
+++ b/src/quick/items/context2d/qquickcontext2dtexture.cpp
@@ -50,7 +50,7 @@
#include <QOpenGLFramebufferObject>
#include <QOpenGLFramebufferObjectFormat>
#include <QtCore/QThread>
-
+#include <QtCore/QCoreApplication>
QT_BEGIN_NAMESPACE