diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-12-06 13:54:07 +0100 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-12-06 13:54:07 +0100 |
commit | ba1c7be72879f9954029aa54023ac30a6e66710d (patch) | |
tree | 9b542ef6f9fc29756b630397fe911ab8438e87f0 /src/adaptationlayers/adaptationlayer.h | |
parent | ab405ff9fcb670367454ceb18c02175b9d74de7e (diff) |
threaded texture uploader for lighthouse's EglFStexturemanager
Diffstat (limited to 'src/adaptationlayers/adaptationlayer.h')
-rw-r--r-- | src/adaptationlayers/adaptationlayer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/adaptationlayers/adaptationlayer.h b/src/adaptationlayers/adaptationlayer.h index abe4d1a..e43571b 100644 --- a/src/adaptationlayers/adaptationlayer.h +++ b/src/adaptationlayers/adaptationlayer.h @@ -159,6 +159,14 @@ public: void setMipmaps(bool mipmapped) { m_mipmap = mipmapped; } bool hasMipmaps() const { return m_mipmap; } + /* + ### gunnar: the texture reference is potentially written to in a thread + while uploading, so ANY access to the other accessors is strictly not + allowed until status returns Uploaded. + To support fetching and writing status from multiple threads, which I'm + unsure if will happen, we should change status to be an QAtomicInt + */ + void setStatus(Status s); Status status() const { return m_status; } |