Index: cc/raster/staging_buffer_pool.h |
diff --git a/cc/raster/staging_buffer_pool.h b/cc/raster/staging_buffer_pool.h |
index faa012b2b8029192b97400a1b48ff5491d82d3f9..38706831cd9826ca5e09b782967f8b62c9c321fd 100644 |
--- a/cc/raster/staging_buffer_pool.h |
+++ b/cc/raster/staging_buffer_pool.h |
@@ -12,6 +12,7 @@ |
#include <set> |
#include "base/macros.h" |
+#include "base/memory/memory_coordinator_client.h" |
#include "base/memory/weak_ptr.h" |
#include "base/synchronization/lock.h" |
#include "base/time/time.h" |
@@ -50,7 +51,8 @@ struct StagingBuffer { |
}; |
class CC_EXPORT StagingBufferPool |
- : public base::trace_event::MemoryDumpProvider { |
+ : public base::trace_event::MemoryDumpProvider, |
+ public base::MemoryCoordinatorClient { |
public: |
~StagingBufferPool() final; |
@@ -87,6 +89,9 @@ class CC_EXPORT StagingBufferPool |
void StagingStateAsValueInto( |
base::trace_event::TracedValue* staging_state) const; |
+ // Overriden from base::MemoryCoordinatorClient. |
+ void OnMemoryStateChange(base::MemoryState state) override; |
+ |
scoped_refptr<base::SequencedTaskRunner> task_runner_; |
ContextProvider* const worker_context_provider_; |
ResourceProvider* const resource_provider_; |