diff options
author | Anders Bakken <anders@trolltech.com> | 2009-08-05 12:02:00 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-08-18 17:48:19 (GMT) |
commit | 83cbb77ac9ef7f95e11dbd29b36d5d9660e778ea (patch) | |
tree | f9923fc28473c192577872f6117b118f72737d1f /src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h | |
parent | 4a71fa599b0dfb71cc04fd45afeb95e780a7d2fb (diff) | |
download | Qt-83cbb77ac9ef7f95e11dbd29b36d5d9660e778ea.zip Qt-83cbb77ac9ef7f95e11dbd29b36d5d9660e778ea.tar.gz Qt-83cbb77ac9ef7f95e11dbd29b36d5d9660e778ea.tar.bz2 |
Simplify DirectFB clipping
Instead of storing whether or not our clip is dirty and updating it in
every paint operation we'll just update it whenever it changes. This is
more intuitive and should be faster for the common case as well.
Also make sure to implement clip(region).
Prevent multiple updateClip() calls for a single clip operation by
introducing a flag to check whether we recursed into the different
clip() calls.
Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h index b939b68..80108b2 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.h @@ -101,6 +101,7 @@ public: virtual void setState(QPainterState *state); virtual void clip(const QVectorPath &path, Qt::ClipOperation op); + virtual void clip(const QRegion ®ion, Qt::ClipOperation op); virtual void clip(const QRect &rect, Qt::ClipOperation op); static void initImageCache(int size); |