summaryrefslogtreecommitdiffstats
path: root/src/opengl/qpaintengine_opengl_p.h
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-06-01 09:06:55 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2011-06-03 09:03:48 (GMT)
commit243535036078fec14bc460ccf41708ff14878797 (patch)
tree5938cac643ae7ab7ca8c8e8858caa2055eda427e /src/opengl/qpaintengine_opengl_p.h
parent8339121e0942e3e3b81af551a47be7b4a347608c (diff)
downloadQt-243535036078fec14bc460ccf41708ff14878797.zip
Qt-243535036078fec14bc460ccf41708ff14878797.tar.gz
Qt-243535036078fec14bc460ccf41708ff14878797.tar.bz2
Refactor glyph pretransform check
Move paintEngineSupportsTransformations logic from QPainter to paint engine subclasses. Simplify and consolidate checks for cached drawing (pretransformed) and path drawing (untransformed) in raster paint engine. Fix unnecessary transform when paint engines actually take the path drawing track. Fix scaling and rotation transform in raster engine for Mac. Task-number: QTBUG-19086 Change-Id: I1c0c1800a5173d3db765b9fccfd0e7a3628e3815 Reviewed-on: http://codereview.qt.nokia.com/298 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> (cherry picked from commit 43c0e08ba2e3487840b4063b2099bc17cdd4dce2)
Diffstat (limited to 'src/opengl/qpaintengine_opengl_p.h')
-rw-r--r--src/opengl/qpaintengine_opengl_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qpaintengine_opengl_p.h b/src/opengl/qpaintengine_opengl_p.h
index 8f12be4..aaca48a 100644
--- a/src/opengl/qpaintengine_opengl_p.h
+++ b/src/opengl/qpaintengine_opengl_p.h
@@ -143,6 +143,7 @@ public:
Qt::HANDLE handle() const;
#endif
inline Type type() const { return QPaintEngine::OpenGL; }
+ bool supportsTransformations(qreal, const QTransform &) const { return true; }
private:
void drawPolyInternal(const QPolygonF &pa, bool close = true);