Optimize the way AnimatedImage display its content
authorLouis du Verdier <louis.du.verdier@free.fr>
Thu, 5 Jun 2014 06:44:16 +0000 (08:44 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 5 Jun 2014 12:09:31 +0000 (14:09 +0200)
commit468a65c89eebeeb8c02cb83fe8ffd37c3e8937d2
tree5fb2ece74d4323b17a6500b74fe8573980f69b7e
parent8a71e2bd031230777dcfbb482af40a03b8d91507
Optimize the way AnimatedImage display its content

Since QtQuick2, the AnimatedImage component is less efficient than it
was with QtQuick1, using more CPU and RAM.

This commit makes it upload when required each animation frame as a
cached texture (using QQuickPixmapCache) to speed up the component.

Task-number: QTBUG-38921
Change-Id: I7ab0b5f47ecec6cb3cdded0dd219d6acc1bc4148
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quick/items/qquickanimatedimage.cpp
src/quick/items/qquickanimatedimage_p_p.h
src/quick/items/qquickimage.cpp
src/quick/items/qquickimage_p_p.h
src/quick/util/qquickpixmapcache.cpp
src/quick/util/qquickpixmapcache_p.h