summaryrefslogtreecommitdiffstats
path: root/cc/texture_mailbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/texture_mailbox.h')
-rw-r--r--cc/texture_mailbox.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cc/texture_mailbox.h b/cc/texture_mailbox.h
index 178a618..95bf170 100644
--- a/cc/texture_mailbox.h
+++ b/cc/texture_mailbox.h
@@ -22,6 +22,10 @@ class CC_EXPORT TextureMailbox {
const ReleaseCallback& callback);
TextureMailbox(const Mailbox& mailbox_name,
const ReleaseCallback& callback);
+ TextureMailbox(const Mailbox& mailbox_name,
+ const ReleaseCallback& callback,
+ unsigned sync_point);
+
~TextureMailbox();
const ReleaseCallback& callback() const { return callback_; }
@@ -30,12 +34,15 @@ class CC_EXPORT TextureMailbox {
bool Equals(const TextureMailbox&) const;
bool IsEmpty() const;
const Mailbox& name() const { return name_; }
+ void ResetSyncPoint() { sync_point_ = 0; }
void RunReleaseCallback(unsigned sync_point) const;
void SetName(const Mailbox&);
+ unsigned sync_point() const { return sync_point_; }
private:
Mailbox name_;
ReleaseCallback callback_;
+ unsigned sync_point_;
};
} // namespace cc