Documented which thread gets the QSGPaintedItem::paint() call.
authorYoann Lopes <yoann.lopes@nokia.com>
Tue, 10 May 2011 11:12:14 +0000 (13:12 +0200)
committerYoann Lopes <yoann.lopes@nokia.com>
Tue, 10 May 2011 11:12:57 +0000 (13:12 +0200)
src/declarative/items/qsgpainteditem.cpp

index 6bcc607..800e37b 100644 (file)
@@ -415,6 +415,11 @@ void QSGPaintedItem::setRenderTarget(RenderTarget target)
 
     Reimplement this function in a QSGPaintedItem subclass to provide the
     item's painting implementation, using \a painter.
+
+    \note The QML Scene Graph uses two separate threads, the main thread does things such as
+    processing events or updating animations while a second thread does the actual OpenGL rendering.
+    As a consequence, paint() is not called from the main GUI thread but from the GL enabled
+    renderer thread.
 */
 
 /*!