summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-12-01 08:18:47 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-12-01 11:40:36 (GMT)
commitdbfdfdb1bc37dd18dd1b723b5d5b0b65c37f3f41 (patch)
treeff1ca3a0e5e9555111cb60a05009b60cd27f07bf /src/gui/itemviews/qabstractitemview.cpp
parentb5b9faa7cdc877f8ab32a8d5ae480b5857761409 (diff)
downloadQt-dbfdfdb1bc37dd18dd1b723b5d5b0b65c37f3f41.zip
Qt-dbfdfdb1bc37dd18dd1b723b5d5b0b65c37f3f41.tar.gz
Qt-dbfdfdb1bc37dd18dd1b723b5d5b0b65c37f3f41.tar.bz2
Added caching of vectorpaths to the GL paint engine.
The first time a path is drawn we call makeCachable on the path, which means that if it is drawn again, we start caching it. This is a bit of a trick to avoid caching paths that are drawn once and discared while at the same time cache paths that are reused automatically. The GL engine owns the vertex information and is responsible for cleaning it up. If the vectorpath is destroyed first, it will call the cleanup function. if the engine dies first, we still require some hooks to clean up the cache in the path. More to come. When VBO's are used, these will be a leaked if the path is destroyed after the engine. Reviewed-by: Samuel
Diffstat (limited to 'src/gui/itemviews/qabstractitemview.cpp')
0 files changed, 0 insertions, 0 deletions