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

Unified Diff: gpu/command_buffer/service/mailbox_manager.h

Issue 11362053: IPC to generate mailbox names on the GPU process IO thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | gpu/command_buffer/service/mailbox_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/mailbox_manager.h
===================================================================
--- gpu/command_buffer/service/mailbox_manager.h (revision 166046)
+++ gpu/command_buffer/service/mailbox_manager.h (working copy)
@@ -56,6 +56,10 @@
// manager.
void DestroyOwnedTextures(TextureManager* owner, bool have_context);
+ std::string private_key() {
+ return std::string(private_key_, sizeof(private_key_));
+ }
+
private:
friend class base::RefCounted<MailboxManager>;
@@ -86,6 +90,7 @@
std::pointer_to_binary_function<
const TargetName&, const TargetName&, bool> > TextureDefinitionMap;
+ char private_key_[GL_MAILBOX_SIZE_CHROMIUM / 2];
crypto::HMAC hmac_;
TextureDefinitionMap textures_;
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | gpu/command_buffer/service/mailbox_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698