diff options
author | Kimmo Hämäläinen <kimmo.hamalainen@nokia.com> | 2010-09-24 16:46:39 +0300 |
---|---|---|
committer | Kimmo Hämäläinen <kimmo.hamalainen@nokia.com> | 2010-09-24 16:52:06 +0300 |
commit | 3d67cbfce3f3c18d0ca7454c6e03a7df3a975232 (patch) | |
tree | 65dec1170e22ea8fa6f0d3698b370388cb475396 /src/mtexturepixmapitem_glx.cpp | |
parent | b2e2aa0593c6f6eb9f08ebcce4eba517e10b3764 (diff) |
Fixes: NB#194203 - MCompositor slows down application start from the grid by 0,8s
- instead of a fixed 700 ms delay, wait for damage events before starting
the startup animation
- move the damage object to MWindowPropertyCache so that we can create it
before mapping the window, increasing possibilities to get all damage events
Diffstat (limited to 'src/mtexturepixmapitem_glx.cpp')
-rw-r--r-- | src/mtexturepixmapitem_glx.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mtexturepixmapitem_glx.cpp b/src/mtexturepixmapitem_glx.cpp index d826517..3ee0cac 100644 --- a/src/mtexturepixmapitem_glx.cpp +++ b/src/mtexturepixmapitem_glx.cpp @@ -198,7 +198,8 @@ void MTexturePixmapItem::rebindPixmap() void MTexturePixmapItem::enableDirectFbRendering() { - d->damageTracking(false); + if (d->item->propertyCache()) + d->item->propertyCache()->damageTracking(false); if ((d->direct_fb_render || d->glpixmap == 0) && !d->custom_tfp) return; @@ -224,7 +225,8 @@ void MTexturePixmapItem::enableDirectFbRendering() void MTexturePixmapItem::enableRedirectedRendering() { - d->damageTracking(true); + if (d->item->propertyCache()) + d->item->propertyCache()->damageTracking(true); if ((!d->direct_fb_render || d->glpixmap != 0) && !d->custom_tfp) return; |