aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/theme/mthemedaemon.cpp
AgeCommit message (Collapse)Author
2010-11-23Changes: fix windows portHolger Schroeder
RevBy: TrustMe Details: the theme path is changed, and the path to the device configs was missing a path separator.
2010-11-23Changes: make windows build work againHolger Schröder
RevBy: Tomas Junnonen
2010-10-26Changes: add support for the meego graphicssystemArmin Berres
RevBy: Michael Dominic K., Stanislav Ionascu, Daniel d'Andrada, Tomas Junnonen Details: The meego graphicssystem does not need a QGLWidget anymore to do hardware rendering. The QGLContext will be created automatically behind the scenes. Therefor when running with the meego graphcissystem the QGLWidget will not be created anymore. If the native graphicssystem is used everything works as before. Before theme assets have been shared between themedaemon and clients via X handles. With the meego graphicssystem a new way of sharing is introduced. A shared QPixmap will be backed up by two images: One texture used for hardware rendering and one so called soft image used if the pixmap us used for software rendering. The texture will be shared via a gl extension between the processed, the image is shared via shared memory. Ordinary pixmaps are not backed up by XPixmaps anymore, they will use raster now.
2010-09-30Changes: local themedaemon ignores most used pixmapsArmin Berres
RevBy: Holger Schröder Details: The remote themedaemon keeps statistics about the most used pixmaps and preloads them at app startup. So far the local themedaemon also did this. This means every app started e.g. in scratchbox where no necessarily a themedaemon is running started to preload pixmaps. Apart from that different apps would simply override the stats of other running apps.
2010-09-27Fixes: NB#167434 - MThemeDaemon uses excessive amount of heapPeter Penz
RevBy: Armin Berres Details: The purpose of MThemeResourceManager has been to improve the performance of SVG-loading by reusing existing SVG renderer instances. But keeping the SVG renderer instances for some time leads to a very dynamic allocation of the memory and some fragmentation. So even after all SVG renderer instances have been deleted, the dirty memory of the themedaemon is very high. As the SVGs get cached anyhow in the meantime, this kind of performance optimization can be dropped now in favor of the memory demand.
2010-08-25Changes: reload theme when receiving SIGHUPArmin Berres
RevBy: Jörgen Details: Can used by the theme to notify the themedaemon about an update.
2010-08-05Changes: load pixmaps based on prioritiesArmin Berres
RevBy: Peter Details: So far the themedaemon loads pixmaps based on a first come first serve base. When a bunch of applications request of lot of pixmaps, this happens e.g. at startup or during a theme change it is pure pure chance which item is loaded first. In the worst case an invisible background application receives its pixmaps before the forground application. With this commit all pixmap requests have a priority. The highest priority have currently visible applications, the lowest one pre- started ones. Invisible not prestarted applications come in between. Additionally via a conf file a set of applications be be specified which have a fixed priority. Right now the forground app has a priority of 100, sysuid 90, duihome = 80, meego-im-uiserver 70. This means they will be updated before the invisible applications which have a priority of 0. Change themedaemonpriorities.conf if other values are needed.
2010-08-02Changes: save changed statistics of most used pixmaps to diskArmin Berres
RevBy: Peter Details: So far the themedaemon only saved the statistics about most used pixmaps when it has been terminated gracefully. Now it will save them whenever they change (should not happen really often when phone is used for some time) but not more often than 10 seconds.
2010-07-30Fixes: NB#176789 - Loading a specific theme icons / styles when the language ↵Janne Heikkilä
is switched (example: arabic) is not working RevBy: Tomas Junnonen Details: Added support for localizing all the graphics assets (images, icons, svgs). Previously only icons could be localized.
2010-07-07Changes: Reuse MThemeImagesDirectory instances if possible to speedup the ↵Peter Penz
performance RevBy: Armin Berres Details: When changing the theme, creating MThemeImageDirectory instances is quite expensive and can take up to around 1 second per instance. Reusing existing instances, like e. g. the base theme directory, improves the performance.
2010-06-03Fixes: NB#168359 - Theme change crashes/blocks setting applicationDUI-Team Symbio
Fixes: NB#171458 - Need a signal to detect when the theme change is complete RevBy: Tomas Junnonen Details: This patch adds a delayed pixmap deletion, so that the applications have time to refresh their graphics first. Applications will send a message to the daemon when they have finished theme change. When all applications have sent this message, the daemon will delete the pixmaps and broadcast theme-change-completed packet. MTheme::themeChangeCompleted() signal has been added.
2010-05-03Changes: use X-MeeGoTouch-Metatheme in index.themeHolger Schroeder
RevBy: Armin Berres Details: We agreed upon X-MeeGoTouch-Metatheme as the type and section name for theme index files. This patch adapts libmeegotouch to it.
2010-04-16Changes: define cache directory in pro filesArmin Berres
RevBy: TrustMe Details: The cache directories have been hardcoded in the sources so far, but as they have a common prefix this should not happen. The main problem ist that the cache dir for css files have been wrong and mapplications therefor could not save the binary css files. The prefix is not configurable via ./configure, I do not consider this useful.
2010-04-13Changes: make mthemedaemon work with old theme index filesHolger Schroeder
RevBy: Tomas Details: This makes the themedaemon work with both libdui and libmeegotouch style theme index files.
2010-04-12Changes: Renamed dui to meegotouchTomas Junnonen
By: Holger, Daniel, Janne RevBy: Tomas, Holger