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

Unified Diff: gpu/command_buffer/client/transfer_buffer.h

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: (rebase) Created 3 years, 7 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
« no previous file with comments | « gpu/command_buffer/client/mapped_memory.cc ('k') | gpu/command_buffer/client/transfer_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/transfer_buffer.h
diff --git a/gpu/command_buffer/client/transfer_buffer.h b/gpu/command_buffer/client/transfer_buffer.h
index 5f6623e05124e28dbb8f3985d9c3c0972367ee11..c0c2ba040cd812f2cf5f495213144a3995e62bf5 100644
--- a/gpu/command_buffer/client/transfer_buffer.h
+++ b/gpu/command_buffer/client/transfer_buffer.h
@@ -59,6 +59,8 @@ class GPU_EXPORT TransferBufferInterface {
virtual unsigned int GetSize() const = 0;
virtual unsigned int GetFreeSize() const = 0;
+
+ virtual base::SharedMemory* GetSharedMemory() const = 0;
};
// Class that manages the transfer buffer.
@@ -86,6 +88,7 @@ class GPU_EXPORT TransferBuffer : public TransferBufferInterface {
void FreePendingToken(void* p, unsigned int token) override;
unsigned int GetSize() const override;
unsigned int GetFreeSize() const override;
+ base::SharedMemory* GetSharedMemory() const override;
// These are for testing.
unsigned int GetCurrentMaxAllocationWithoutRealloc() const;
« no previous file with comments | « gpu/command_buffer/client/mapped_memory.cc ('k') | gpu/command_buffer/client/transfer_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698