diff options
author | Andy Nichols <andy.nichols@digia.com> | 2014-09-03 12:58:50 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2014-09-11 14:07:40 +0300 |
commit | 71490ac4d7c9211aff8e0c1a5af8597271de0117 (patch) | |
tree | e92169543e7787c9a33facda718c590930065f02 /src/plugins/scenegraph/softwarecontext/imagenode.h | |
parent | 8efcafc5ff877ab54a7d4ee7673f02cbd900031e (diff) |
Add support for Image mirror property
The is probably not the ideal path (as there is at least one copy), but
we can document that mirror is slow. There is no clear path to blit
mirrored though, so it is better to do this than to render un-mirrored
or use QPixamp.toImage().mirrored().toPixmap()
Change-Id: Ife751f3635e8f9d8ea08676fb1f263bdb727aa2f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/plugins/scenegraph/softwarecontext/imagenode.h')
-rw-r--r-- | src/plugins/scenegraph/softwarecontext/imagenode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/scenegraph/softwarecontext/imagenode.h b/src/plugins/scenegraph/softwarecontext/imagenode.h index a0c059a889..05d40773a1 100644 --- a/src/plugins/scenegraph/softwarecontext/imagenode.h +++ b/src/plugins/scenegraph/softwarecontext/imagenode.h @@ -98,11 +98,13 @@ private: QRectF m_subSourceRect; QSGTexture *m_texture; + QPixmap m_cachedMirroredPixmap; bool m_mirror; bool m_smooth; bool m_tileHorizontal; bool m_tileVertical; + bool m_cachedMirroredPixmapIsDirty; }; #endif // IMAGENODE_H |