summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-08-20 23:27:21 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-08-20 23:27:21 (GMT)
commitfd209144f8df3ab7c6f13d8efc67d9339ccc52e7 (patch)
tree0ffc4a56c22bcf81eabbd551bcd23da5f4a7786f /src/plugins/gfxdrivers
parentd7f8581fff438bb03ca9eae1748704c9ccaa3bd7 (diff)
downloadQt-fd209144f8df3ab7c6f13d8efc67d9339ccc52e7.zip
Qt-fd209144f8df3ab7c6f13d8efc67d9339ccc52e7.tar.gz
Qt-fd209144f8df3ab7c6f13d8efc67d9339ccc52e7.tar.bz2
Force rasterfallbacks with a env variable in dfb
If qgetenv("QT_DIRECTFB_FORCE_RASTER").toInt() > 0 all paint operations will fall back to the raster engine in DirectFB. Good trick for debugging. I hijacked the compositionModeStatus variable for this since it's checked for every paint operation anyway and I didn't want to introduce any overhead. Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index 26a2374..956189c 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -847,6 +847,13 @@ void QDirectFBPaintEnginePrivate::setCompositionMode(QPainter::CompositionMode m
{
if (!surface)
return;
+
+ static const bool forceRasterFallBack = qgetenv("QT_DIRECTFB_FORCE_RASTER").toInt() > 0;
+ if (forceRasterFallBack) {
+ compositionModeStatus = 0;
+ return;
+ }
+
compositionModeStatus = PorterDuff_SupportedBlits;
switch (mode) {
case QPainter::CompositionMode_Clear: