aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/softwarecontext/imagenode.h
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@digia.com>2014-09-03 12:58:50 +0200
committerLars Knoll <lars.knoll@digia.com>2014-09-11 14:07:40 +0300
commit71490ac4d7c9211aff8e0c1a5af8597271de0117 (patch)
treee92169543e7787c9a33facda718c590930065f02 /src/plugins/scenegraph/softwarecontext/imagenode.h
parent8efcafc5ff877ab54a7d4ee7673f02cbd900031e (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.h2
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