diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2011-11-11 16:49:41 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-14 15:28:43 +0100 |
commit | ace4b5881c6074b6e525281e0daa3a4740203b15 (patch) | |
tree | a9f51f4b1c423764e74fcaa4791d08d0747ccb63 /src/declarative/items | |
parent | fd58c5fc9fa5dc1aa975cf40a5a58945671e22ee (diff) |
Distance field glyph cache refactoring.
The distance field glyph cache is now an abstract class part of the
adaptation layer. It can be implemented to define the way the glyphs are
stored in graphics memory on a specific platform. The typical use case
is for having a cross-process glyph cache. To implement a custom glyph
cache, one has to override three pure virtual functions: requestGlyphs(),
storeGlyphs() and releaseGlyphs().
The default implementation works the same way as before the refactoring
(no cross-process cache).
Change-Id: I6e231a119abbffbe36f5f0d690f0b8be0664ff4f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src/declarative/items')
-rw-r--r-- | src/declarative/items/qquicktext.cpp | 1 | ||||
-rw-r--r-- | src/declarative/items/qquicktextedit.cpp | 1 | ||||
-rw-r--r-- | src/declarative/items/qquicktextinput.cpp | 1 | ||||
-rw-r--r-- | src/declarative/items/qquicktextnode.cpp | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/src/declarative/items/qquicktext.cpp b/src/declarative/items/qquicktext.cpp index 4a3308626a..e11e4be089 100644 --- a/src/declarative/items/qquicktext.cpp +++ b/src/declarative/items/qquicktext.cpp @@ -42,7 +42,6 @@ #include "qquicktext_p.h" #include "qquicktext_p_p.h" -#include <private/qsgdistancefieldglyphcache_p.h> #include <private/qsgcontext_p.h> #include <private/qsgadaptationlayer_p.h> #include "qquicktextnode_p.h" diff --git a/src/declarative/items/qquicktextedit.cpp b/src/declarative/items/qquicktextedit.cpp index 18d2cb8ede..c5b2f5750b 100644 --- a/src/declarative/items/qquicktextedit.cpp +++ b/src/declarative/items/qquicktextedit.cpp @@ -56,7 +56,6 @@ #include <private/qdeclarativeglobal_p.h> #include <private/qtextcontrol_p.h> #include <private/qtextengine_p.h> -#include <private/qsgdistancefieldglyphcache_p.h> #include <private/qsgtexture_p.h> #include <private/qsgadaptationlayer_p.h> diff --git a/src/declarative/items/qquicktextinput.cpp b/src/declarative/items/qquicktextinput.cpp index 69f699446a..218a313a17 100644 --- a/src/declarative/items/qquicktextinput.cpp +++ b/src/declarative/items/qquicktextinput.cpp @@ -44,7 +44,6 @@ #include "qquickcanvas.h" #include <private/qdeclarativeglobal_p.h> -#include <private/qsgdistancefieldglyphcache_p.h> #include <QtDeclarative/qdeclarativeinfo.h> #include <QtGui/qevent.h> diff --git a/src/declarative/items/qquicktextnode.cpp b/src/declarative/items/qquicktextnode.cpp index 5cc372f9e1..56c3b54cd7 100644 --- a/src/declarative/items/qquicktextnode.cpp +++ b/src/declarative/items/qquicktextnode.cpp @@ -42,7 +42,6 @@ #include "qquicktextnode_p.h" #include "qsgsimplerectnode.h" #include <private/qsgadaptationlayer_p.h> -#include <private/qsgdistancefieldglyphcache_p.h> #include <private/qsgdistancefieldglyphnode_p.h> #include <private/qsgcontext_p.h> |