diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2011-05-10 13:12:14 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2011-05-10 13:12:57 +0200 |
commit | 79f6db432ef9a05586176ad4e2fd3ed83be6f53c (patch) | |
tree | 04a5ed839f7417137e43a844eb7893d4d631a0d0 /src | |
parent | 762cbc75b94486ca93b964b4097c88ae24c667d3 (diff) |
Documented which thread gets the QSGPaintedItem::paint() call.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/items/qsgpainteditem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/items/qsgpainteditem.cpp b/src/declarative/items/qsgpainteditem.cpp index 6bcc60700a..800e37b324 100644 --- a/src/declarative/items/qsgpainteditem.cpp +++ b/src/declarative/items/qsgpainteditem.cpp @@ -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. */ /*! |