| 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..96f6f8f59a84eebd8e8390c8d17c0b4208f306c4 100644
|
| --- a/cc/raster/staging_buffer_pool.h
|
| +++ b/cc/raster/staging_buffer_pool.h
|
| @@ -18,6 +18,7 @@
|
| #include "base/trace_event/memory_dump_provider.h"
|
| #include "cc/output/context_provider.h"
|
| #include "cc/resources/resource_provider.h"
|
| +#include "components/memory_coordinator/common/memory_coordinator_client.h"
|
|
|
| namespace gpu {
|
| namespace gles2 {
|
| @@ -50,7 +51,8 @@ struct StagingBuffer {
|
| };
|
|
|
| class CC_EXPORT StagingBufferPool
|
| - : public base::trace_event::MemoryDumpProvider {
|
| + : public base::trace_event::MemoryDumpProvider,
|
| + public memory_coordinator::MemoryCoordinatorClient {
|
| public:
|
| ~StagingBufferPool() final;
|
|
|
| @@ -87,6 +89,10 @@ class CC_EXPORT StagingBufferPool
|
| void StagingStateAsValueInto(
|
| base::trace_event::TracedValue* staging_state) const;
|
|
|
| + // Overriden from memory_coordinator::MemoryCoordinatorClient.
|
| + void OnMemoryStateChange(
|
| + memory_coordinator::mojom::MemoryState state) override;
|
| +
|
| scoped_refptr<base::SequencedTaskRunner> task_runner_;
|
| ContextProvider* const worker_context_provider_;
|
| ResourceProvider* const resource_provider_;
|
|
|