summaryrefslogtreecommitdiffstats
path: root/src/scenegraph/coreapi/qsgtexturemanager.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-12-09 11:49:34 +0100
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-12-09 11:49:34 +0100
commit4d7f0bfabb315b46d9600f87452420a76a50d932 (patch)
tree58dfa99b2a09df2d9994fcd03ec68b28d9cec2ed /src/scenegraph/coreapi/qsgtexturemanager.h
parent618719564b0e15ae383c2ffbf87f331375ad6778 (diff)
More work on lazy QxImage
Diffstat (limited to 'src/scenegraph/coreapi/qsgtexturemanager.h')
-rw-r--r--src/scenegraph/coreapi/qsgtexturemanager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scenegraph/coreapi/qsgtexturemanager.h b/src/scenegraph/coreapi/qsgtexturemanager.h
index 0bc08aa..6eb25ad 100644
--- a/src/scenegraph/coreapi/qsgtexturemanager.h
+++ b/src/scenegraph/coreapi/qsgtexturemanager.h
@@ -148,6 +148,8 @@ public:
bool isNull() const { return m_texture == 0; }
+ bool isReady() const { return m_texture != 0 && m_texture->status() == QSGTexture::Ready; }
+
private:
void deref() {
if (m_texture && !--m_texture->m_ref_count) {