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 73115d8b662de34971130122d22f4d8fccf3a00b..14d3ac06fd39847a5dfe80e15383bf97f542d074 100644 |
--- a/gpu/command_buffer/service/memory_program_cache.h |
+++ b/gpu/command_buffer/service/memory_program_cache.h |
@@ -19,13 +19,16 @@ |
#include "gpu/command_buffer/service/program_cache.h" |
namespace gpu { |
+ |
+struct GpuPreferences; |
+ |
namespace gles2 { |
// Program cache that stores binaries completely in-memory |
class GPU_EXPORT MemoryProgramCache : public ProgramCache { |
public: |
- MemoryProgramCache(); |
- explicit MemoryProgramCache(const size_t max_cache_size_bytes); |
+ MemoryProgramCache(size_t max_cache_size_bytes, |
+ bool disable_gpu_shader_disk_cache); |
~MemoryProgramCache() override; |
ProgramLoadResult LoadLinkedProgram( |
@@ -150,6 +153,7 @@ class GPU_EXPORT MemoryProgramCache : public ProgramCache { |
scoped_refptr<ProgramCacheValue> > ProgramMRUCache; |
const size_t max_size_bytes_; |
+ const bool disable_gpu_shader_disk_cache_; |
size_t curr_size_bytes_; |
ProgramMRUCache store_; |