Refactor glyph pretransform check
authorJiang Jiang <jiang.jiang@nokia.com>
Wed, 1 Jun 2011 09:06:55 +0000 (11:06 +0200)
committerQt Continuous Integration System <qt-info@nokia.com>
Fri, 3 Jun 2011 08:57:42 +0000 (10:57 +0200)
commit43c0e08ba2e3487840b4063b2099bc17cdd4dce2
treed07d1a6a52af2a661c90fd743c6d6865210bd082
parentc8dead71865de3e09414c413faa38b53df09223b
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>
src/gui/painting/qpaintengine_mac_p.h
src/gui/painting/qpaintengine_raster.cpp
src/gui/painting/qpaintengine_raster_p.h
src/gui/painting/qpaintengineex.cpp
src/gui/painting/qpaintengineex_p.h
src/gui/painting/qpainter.cpp
src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
src/opengl/qpaintengine_opengl_p.h
src/openvg/qpaintengine_vg_p.h