Direct2D QPA: Cache QVectorPaths if drawn more than once
authorLouai Al-Khanji <louai.al-khanji@digia.com>
Wed, 21 May 2014 10:25:26 +0000 (13:25 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 22 May 2014 04:06:51 +0000 (06:06 +0200)
commit8d7e23ea0b6d0e198e445e3cd4285a34d4e7dc96
treeccd552eeaf5e6b698c7371dba250d6271a1fb0ef
parent5d2939344eb8fbd3c2115f52a7a8d47365bdf820
Direct2D QPA: Cache QVectorPaths if drawn more than once

Hooking into the caching mechanism gets us a measurable performance boost
for paths that are drawn repeatedly, around 10% on my machine when drawing
aliased arcs.

Change-Id: I32f4ed7daa8a51b5c5a9c6d5414ab5d4ef759f70
Reviewed-by: Risto Avila <risto.avila@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/plugins/platforms/direct2d/qwindowsdirect2dpaintengine.cpp