aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgadaptationlayer_p.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2015-02-20 07:50:45 -0600
committerMichael Brasser <michael.brasser@live.com>2015-02-25 21:55:49 +0000
commita7c0e62b9122a8d210149570be8834401b9b36d3 (patch)
tree921e0b75cc28e724ca466ef282d356e91323cb7b /src/quick/scenegraph/qsgadaptationlayer_p.h
parente23309b9d1ecb50b647bfdf912a170ed00dc6880 (diff)
Optimize distance field construction.
Reduce the number of times we construct a painter path from a glyph. Change-Id: Ic1f32c78ab5dfd3b75d5442da163cda1dedab3ee Task-number: QTBUG-42853 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com> Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quick/scenegraph/qsgadaptationlayer_p.h')
-rw-r--r--src/quick/scenegraph/qsgadaptationlayer_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgadaptationlayer_p.h b/src/quick/scenegraph/qsgadaptationlayer_p.h
index e5923fc564..1253711a94 100644
--- a/src/quick/scenegraph/qsgadaptationlayer_p.h
+++ b/src/quick/scenegraph/qsgadaptationlayer_p.h
@@ -323,6 +323,7 @@ protected:
Texture *texture;
TexCoord texCoord;
QRectF boundingRect;
+ QPainterPath path;
quint32 ref;
GlyphData() : texture(0), ref(0) { }