| Index: gpu/command_buffer/service/memory_program_cache.h
|
| diff --git a/gpu/command_buffer/service/memory_program_cache.h b/gpu/command_buffer/service/memory_program_cache.h
|
| index 4662e911175a90d486f35b2c9d9e691bf5ad4ebd..15fad43d88b1b7d2d76c59454e72e2dd2f69714f 100644
|
| --- a/gpu/command_buffer/service/memory_program_cache.h
|
| +++ b/gpu/command_buffer/service/memory_program_cache.h
|
| @@ -14,6 +14,7 @@
|
| #include "base/containers/hash_tables.h"
|
| #include "base/containers/mru_cache.h"
|
| #include "base/macros.h"
|
| +#include "base/memory/memory_pressure_listener.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
|
| #include "gpu/command_buffer/service/program_cache.h"
|
| @@ -166,6 +167,9 @@ class GPU_EXPORT MemoryProgramCache : public ProgramCache {
|
| typedef base::MRUCache<std::string,
|
| scoped_refptr<ProgramCacheValue> > ProgramMRUCache;
|
|
|
| + void HandleMemoryPressure(
|
| + base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
|
| +
|
| const size_t max_size_bytes_;
|
| const bool disable_gpu_shader_disk_cache_;
|
| const bool disable_program_caching_for_transform_feedback_;
|
| @@ -173,6 +177,8 @@ class GPU_EXPORT MemoryProgramCache : public ProgramCache {
|
| ProgramMRUCache store_;
|
| GpuProcessActivityFlags* activity_flags_;
|
|
|
| + base::MemoryPressureListener memory_pressure_listener_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(MemoryProgramCache);
|
| };
|
|
|
|
|