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

Unified Diff: gpu/command_buffer/common/mailbox.cc

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: gpu/command_buffer/common/mailbox.cc
diff --git a/gpu/command_buffer/common/mailbox.cc b/gpu/command_buffer/common/mailbox.cc
index 8d8393fa63c0a647a992c98d6619156e01e75a92..3d32ebb80b075e6c2a1f6cc9bd1e5bdd2f8922bd 100644
--- a/gpu/command_buffer/common/mailbox.cc
+++ b/gpu/command_buffer/common/mailbox.cc
@@ -31,4 +31,13 @@ void Mailbox::SetName(const int8* n) {
memcpy(name, n, sizeof(name));
}
+MailboxHolder::MailboxHolder() : target_(0), sync_point_(0) {}
+
+MailboxHolder::MailboxHolder(const Mailbox& mailbox,
+ uint32 target,
+ uint32 sync_point)
+ : target_(target), sync_point_(sync_point) {
+ mailbox_.SetName(mailbox.name);
+}
+
} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698