projects
/
konrad/qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
762cbc7
)
Documented which thread gets the QSGPaintedItem::paint() call.
author
Yoann Lopes
<yoann.lopes@nokia.com>
Tue, 10 May 2011 11:12:14 +0000 (13:12 +0200)
committer
Yoann Lopes
<yoann.lopes@nokia.com>
Tue, 10 May 2011 11:12:57 +0000 (13:12 +0200)
src/declarative/items/qsgpainteditem.cpp
patch
|
blob
|
history
diff --git
a/src/declarative/items/qsgpainteditem.cpp
b/src/declarative/items/qsgpainteditem.cpp
index
6bcc607
..
800e37b
100644
(file)
--- 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.
*/
/*!