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

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

Issue 2592803002: Dump MappedMemoryManager memory via GLES2Implementation (Closed)
Patch Set: fix build Created 4 years 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/gles2_implementation.cc ('k') | gpu/command_buffer/client/mapped_memory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/mapped_memory.h
diff --git a/gpu/command_buffer/client/mapped_memory.h b/gpu/command_buffer/client/mapped_memory.h
index 0af38b56e92f02b92043fd0e286e3fc9b6108fa0..72a96764c5dcc97e7bb6e6b9ffe77cf723feefde 100644
--- a/gpu/command_buffer/client/mapped_memory.h
+++ b/gpu/command_buffer/client/mapped_memory.h
@@ -121,8 +121,7 @@ class GPU_EXPORT MemoryChunk {
};
// Manages MemoryChunks.
-class GPU_EXPORT MappedMemoryManager
- : public base::trace_event::MemoryDumpProvider {
+class GPU_EXPORT MappedMemoryManager {
public:
enum MemoryLimit {
kNoLimit = 0,
@@ -133,7 +132,7 @@ class GPU_EXPORT MappedMemoryManager
MappedMemoryManager(CommandBufferHelper* helper,
size_t unused_memory_reclaim_limit);
- ~MappedMemoryManager() override;
+ ~MappedMemoryManager();
unsigned int chunk_size_multiple() const {
return chunk_size_multiple_;
@@ -179,9 +178,9 @@ class GPU_EXPORT MappedMemoryManager
// Free Any Shared memory that is not in use.
void FreeUnused();
- // Overridden from base::trace_event::MemoryDumpProvider:
+ // Dump memory usage - called from GLES2Implementation.
bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
- base::trace_event::ProcessMemoryDump* pmd) override;
+ base::trace_event::ProcessMemoryDump* pmd);
// Used for testing
size_t num_chunks() const {
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/client/mapped_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698