summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformintegration_qpa.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-11-18 10:24:32 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-20 14:17:41 +0100
commitc274ea7cf5e11ade0a5812e3080baa671d012524 (patch)
tree86ebcf918989dc674b0e82700cf0c123ba44e49e /src/gui/kernel/qplatformintegration_qpa.h
parent47d5d349d8f5bc590ca7cdf30bf13b69bddf3225 (diff)
Introducing QPlatformSharedGraphicsCache
Interface to provide cross-process caching mechanisms in a platform plugin. Can be used for shared glyph caches and icon caches etc. Change-Id: If0d89a0a50bbd6eee05daf908448262ff270fc5b Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Diffstat (limited to 'src/gui/kernel/qplatformintegration_qpa.h')
-rw-r--r--src/gui/kernel/qplatformintegration_qpa.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformintegration_qpa.h b/src/gui/kernel/qplatformintegration_qpa.h
index 3975d82288..3043ba801d 100644
--- a/src/gui/kernel/qplatformintegration_qpa.h
+++ b/src/gui/kernel/qplatformintegration_qpa.h
@@ -65,6 +65,8 @@ class QAbstractEventDispatcher;
class QPlatformInputContext;
class QPlatformAccessibility;
class QPlatformTheme;
+class QPlatformDialogHelper;
+class QPlatformSharedGraphicsCache;
class Q_GUI_EXPORT QPlatformIntegration
{
@@ -72,7 +74,8 @@ public:
enum Capability {
ThreadedPixmaps = 1,
OpenGL = 2,
- ThreadedOpenGL = 3
+ ThreadedOpenGL = 3,
+ SharedGraphicsCache = 4
};
virtual ~QPlatformIntegration() { }
@@ -83,6 +86,7 @@ public:
virtual QPlatformWindow *createPlatformWindow(QWindow *window) const = 0;
virtual QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const = 0;
virtual QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const;
+ virtual QPlatformSharedGraphicsCache *createPlatformSharedGraphicsCache(const char *cacheId) const;
// Event dispatcher:
virtual QAbstractEventDispatcher *guiThreadEventDispatcher() const = 0;