Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: content/browser/gpu/shader_disk_cache.cc

Issue 17283002: Set max disk cache size correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/shader_disk_cache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..50d31d9e10f01e32f9011e5e012da62cce7367e0 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,6 @@ void ShaderCacheFactory::CacheCleared(const base::FilePath& path) {
ShaderDiskCache::ShaderDiskCache(const base::FilePath& cache_path)
: cache_available_(false),
- max_cache_size_(0),
host_id_(0),
cache_path_(cache_path),
is_initialized_(false),
@@ -527,7 +527,7 @@ void ShaderDiskCache::Init() {
net::SHADER_CACHE,
net::CACHE_BACKEND_BLOCKFILE,
cache_path_.Append(kGpuCachePath),
- max_cache_size_,
+ gpu::kDefaultMaxProgramCacheMemoryBytes,
true,
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE).get(),
NULL,
« no previous file with comments | « content/browser/gpu/shader_disk_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698