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

Unified Diff: gpu/command_buffer/client/gles2_implementation_unittest.cc

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: Implement buckets Created 3 years, 11 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/client/gles2_implementation_unittest.cc
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest.cc b/gpu/command_buffer/client/gles2_implementation_unittest.cc
index fbf35d21917557e4b99cf265246251379a763c13..b6c18f82dded1fac1c5a2814d0b0361e99018298 100644
--- a/gpu/command_buffer/client/gles2_implementation_unittest.cc
+++ b/gpu/command_buffer/client/gles2_implementation_unittest.cc
@@ -149,6 +149,7 @@ class MockTransferBuffer : 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;
size_t MaxTransferBufferSize() {
return size_ - result_size_;
@@ -329,6 +330,10 @@ unsigned int MockTransferBuffer::GetFreeSize() const {
return 0;
}
+base::SharedMemory* MockTransferBuffer::GetSharedMemory() const {
+ return nullptr;
+}
+
// API wrapper for Buffers.
class GenBuffersAPI {
public:

Powered by Google App Engine
This is Rietveld 408576698