Distance field glyph cache refactoring.
authorYoann Lopes <yoann.lopes@nokia.com>
Fri, 11 Nov 2011 15:49:41 +0000 (16:49 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 Nov 2011 14:28:43 +0000 (15:28 +0100)
commitace4b5881c6074b6e525281e0daa3a4740203b15
treea9f51f4b1c423764e74fcaa4791d08d0747ccb63
parentfd58c5fc9fa5dc1aa975cf40a5a58945671e22ee
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>
21 files changed:
src/declarative/items/qquicktext.cpp
src/declarative/items/qquicktextedit.cpp
src/declarative/items/qquicktextinput.cpp
src/declarative/items/qquicktextnode.cpp
src/declarative/scenegraph/qsgadaptationlayer.cpp
src/declarative/scenegraph/qsgadaptationlayer_p.h
src/declarative/scenegraph/qsgcontext.cpp
src/declarative/scenegraph/qsgcontext_p.h
src/declarative/scenegraph/qsgdefaultdistancefieldglyphcache.cpp [new file with mode: 0644]
src/declarative/scenegraph/qsgdefaultdistancefieldglyphcache_p.h [new file with mode: 0644]
src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h [deleted file]
src/declarative/scenegraph/qsgdistancefieldglyphnode.cpp
src/declarative/scenegraph/qsgdistancefieldglyphnode_p.cpp
src/declarative/scenegraph/qsgdistancefieldglyphnode_p.h
src/declarative/scenegraph/qsgdistancefieldglyphnode_p_p.h
src/declarative/scenegraph/scenegraph.pri
src/declarative/scenegraph/util/qsgdistancefieldutil.cpp [moved from src/declarative/scenegraph/qsgdistancefieldglyphcache.cpp with 65% similarity]
src/declarative/scenegraph/util/qsgdistancefieldutil_p.h [new file with mode: 0644]
tests/auto/declarative/qquicktext/tst_qquicktext.cpp
tests/auto/declarative/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp