Introduce QQuickCanvasPixmap
authorCharles Yin <charles.yin@nokia.com>
Mon, 4 Jun 2012 06:34:17 +0000 (16:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jun 2012 10:32:58 +0000 (12:32 +0200)
commit1dcfa8aa2ae6460f26d9843c197532024447e43b
tree10b5243607d603443a4abe9f89e2a453757ffaeb
parent332fe582d1bd590b59618cc7b732be9bf7f9f475
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>
src/quick/items/context2d/qquickcanvasitem.cpp
src/quick/items/context2d/qquickcanvasitem_p.h
src/quick/items/context2d/qquickcontext2d.cpp
src/quick/items/context2d/qquickcontext2d_p.h
src/quick/items/context2d/qquickcontext2dcommandbuffer.cpp
src/quick/items/context2d/qquickcontext2dcommandbuffer_p.h
src/quick/items/context2d/qquickcontext2dtexture.cpp