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

Unified Diff: gpu/command_buffer/common/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: c301e01d Rebase. Created 6 years, 12 months 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.h
diff --git a/gpu/command_buffer/common/mailbox.h b/gpu/command_buffer/common/mailbox.h
index 938167f5cf8142b078cd32af506f1d10b4d384f9..5a2cf35def2bd2fd9b97d8db88d03766076f3f76 100644
--- a/gpu/command_buffer/common/mailbox.h
+++ b/gpu/command_buffer/common/mailbox.h
@@ -7,6 +7,8 @@
#include <string.h>
+#include "base/callback_forward.h"
+#include "base/memory/scoped_ptr.h"
#include "gpu/command_buffer/common/types.h"
#include "gpu/gpu_export.h"
@@ -23,6 +25,16 @@ struct GPU_EXPORT Mailbox {
}
};
+struct GPU_EXPORT MailboxHolder {
danakj 2014/01/06 20:13:42 1 class/struct per file.
sheu 2014/01/06 22:44:44 Done.
+ MailboxHolder();
+ MailboxHolder(const gpu::Mailbox& mailbox,
+ uint32 texture_target,
+ uint32 sync_point);
+ gpu::Mailbox mailbox;
+ uint32 texture_target;
+ uint32 sync_point;
+};
+
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_MAILBOX_H_

Powered by Google App Engine
This is Rietveld 408576698