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

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

Issue 211703003: GPU: 'Pass' SharedMemory when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@GPU_ref_count_buffer
Patch Set: Rebase. Created 6 years, 9 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/service/transfer_buffer_manager.h
diff --git a/gpu/command_buffer/service/transfer_buffer_manager.h b/gpu/command_buffer/service/transfer_buffer_manager.h
index b96cad4cf8ed5eb967090f1eb308b7a62d919776..5f8f94679111cd9b2219cdc9546dfdd9c70c5b61 100644
--- a/gpu/command_buffer/service/transfer_buffer_manager.h
+++ b/gpu/command_buffer/service/transfer_buffer_manager.h
@@ -20,9 +20,10 @@ class GPU_EXPORT TransferBufferManagerInterface {
public:
virtual ~TransferBufferManagerInterface();
- virtual bool RegisterTransferBuffer(int32 id,
- base::SharedMemory* shared_memory,
- size_t size) = 0;
+ virtual bool RegisterTransferBuffer(
+ int32 id,
+ scoped_ptr<base::SharedMemory> shared_memory,
+ size_t size) = 0;
virtual void DestroyTransferBuffer(int32 id) = 0;
virtual scoped_refptr<Buffer> GetTransferBuffer(int32 id) = 0;
};
@@ -33,9 +34,10 @@ class GPU_EXPORT TransferBufferManager
TransferBufferManager();
bool Initialize();
- virtual bool RegisterTransferBuffer(int32 id,
- base::SharedMemory* shared_memory,
- size_t size) OVERRIDE;
+ virtual bool RegisterTransferBuffer(
+ int32 id,
+ scoped_ptr<base::SharedMemory> shared_memory,
+ size_t size) OVERRIDE;
virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
virtual scoped_refptr<Buffer> GetTransferBuffer(int32 id) OVERRIDE;
« no previous file with comments | « gpu/command_buffer/service/command_buffer_service.cc ('k') | gpu/command_buffer/service/transfer_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698