Skip to content

Commit

Permalink
Documented which thread gets the QSGPaintedItem::paint() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann Lopes committed May 10, 2011
1 parent 762cbc7 commit 79f6db4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/declarative/items/qsgpainteditem.cpp
Expand Up @@ -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.
*/

/*!
Expand Down

0 comments on commit 79f6db4

Please sign in to comment.