Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: content/browser/aura/owned_mailbox.h

Issue 105743004: Add gpu::MailboxHolder to hold state for a gpu::Mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cc2a95fe Android fixes. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/aura/owned_mailbox.h
diff --git a/content/browser/aura/owned_mailbox.h b/content/browser/aura/owned_mailbox.h
index ea1c242bf74ff9d385209871151a4e16a50d7d94..da431f09afa4c52a084c8451d9d49129292fe885 100644
--- a/content/browser/aura/owned_mailbox.h
+++ b/content/browser/aura/owned_mailbox.h
@@ -18,11 +18,11 @@ class OwnedMailbox : public base::RefCounted<OwnedMailbox>,
public:
explicit OwnedMailbox(GLHelper* gl_helper);
+ const gpu::Mailbox& mailbox() const { return mailbox_holder_.mailbox(); }
uint32 texture_id() const { return texture_id_; }
- uint32 sync_point() const { return sync_point_; }
- const gpu::Mailbox& mailbox() const { return mailbox_; }
-
- void UpdateSyncPoint(uint32 sync_point);
+ uint32 target() const { return mailbox_holder_.target(); }
+ uint32 sync_point() const { return mailbox_holder_.sync_point(); }
+ void set_sync_point(uint32 sync_point);
protected:
virtual ~OwnedMailbox();
@@ -33,8 +33,7 @@ class OwnedMailbox : public base::RefCounted<OwnedMailbox>,
friend class base::RefCounted<OwnedMailbox>;
uint32 texture_id_;
- gpu::Mailbox mailbox_;
- uint32 sync_point_;
+ gpu::MailboxHolder mailbox_holder_;
GLHelper* gl_helper_;
};

Powered by Google App Engine
This is Rietveld 408576698