Chromium Code Reviews| Index: content/browser/gpu/shader_disk_cache.cc |
| diff --git a/content/browser/gpu/shader_disk_cache.cc b/content/browser/gpu/shader_disk_cache.cc |
| index a9ad9b87ab484435bb8c1da69275c5e27ddc2cbd..44baa469688ed10ffc42c0ffa5c574782e5f9a81 100644 |
| --- a/content/browser/gpu/shader_disk_cache.cc |
| +++ b/content/browser/gpu/shader_disk_cache.cc |
| @@ -7,6 +7,7 @@ |
| #include "base/threading/thread_checker.h" |
| #include "content/browser/gpu/gpu_process_host.h" |
| #include "content/public/browser/browser_thread.h" |
| +#include "gpu/command_buffer/common/constants.h" |
| #include "net/base/cache_type.h" |
| #include "net/base/io_buffer.h" |
| #include "net/base/net_errors.h" |
| @@ -502,7 +503,7 @@ void ShaderCacheFactory::CacheCleared(const base::FilePath& path) { |
| ShaderDiskCache::ShaderDiskCache(const base::FilePath& cache_path) |
| : cache_available_(false), |
| - max_cache_size_(0), |
| + max_cache_size_(gpu::kDefaultMaxProgramCacheMemoryBytes), |
|
pasko
2013/06/17 16:47:37
The field is used only once, directly feeding the
dsinclair
2013/06/17 18:59:11
Done.
|
| host_id_(0), |
| cache_path_(cache_path), |
| is_initialized_(false), |