summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDonald Carr <donald.carr@nokia.com>2010-08-12 18:43:51 (GMT)
committerDonald Carr <donald.carr@nokia.com>2010-08-12 18:45:29 (GMT)
commit5478ba712afeb11768016d05bef975a5a48ae059 (patch)
tree086dab859afdc6f7b904a03ff2bae634a920e927 /doc
parent677b96b3bfcbccae978f0d63f7e16a35783c0eec (diff)
downloadQt-5478ba712afeb11768016d05bef975a5a48ae059.zip
Qt-5478ba712afeb11768016d05bef975a5a48ae059.tar.gz
Qt-5478ba712afeb11768016d05bef975a5a48ae059.tar.bz2
Clean up rasterfallback mechanism in DirectFB
Being able to debug which paint operations are slow with Qt/DirectFB is currently only possible in debug builds (which defeats the purpose somewhat) or by frequent recompilation (with different defines). This patch cleans up the mechanism somewhat and makes it available in release builds as well. The overhead is a single int comparison so it really isn't a performance issue to have this code in place at all times. Reviewed-by: Anders Bakken <agbakken@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/platforms/emb-directfb-EmbLinux.qdoc11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/src/platforms/emb-directfb-EmbLinux.qdoc b/doc/src/platforms/emb-directfb-EmbLinux.qdoc
index 955258e..f416819 100644
--- a/doc/src/platforms/emb-directfb-EmbLinux.qdoc
+++ b/doc/src/platforms/emb-directfb-EmbLinux.qdoc
@@ -153,6 +153,17 @@ manufacturer to manufacture, different operations will be optimized. This
require you to define the operations you want to warn about or disable.
These are listed above in the DIRECTFB_DRAWINGOPERATIONS variable.
+You can also customize this with environment variables.
+
+E.g. If you want to disable fallbacks for drawPixmap and fillRect and also get
+a warning printed on stderr when a fallback would have happened.
+
+\code
+$ export QT_DIRECTFB_WARN_ON_RASTERFALLBACKS="FILL_RECT|DRAW_PIXMAP"
+$ export QT_DIRECTFB_DISABLE_RASTERFALLBACKS="FILL_RECT|DRAW_PIXMAP"
+$ ./app -qws -display directfb
+\endcode
+
Following is a table showing which options you have.
\table