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

Unified Diff: content/browser/gpu/gpu_process_host.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/gpu_process_host.h ('k') | content/browser/gpu/shader_disk_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 36f0dd91b72d1c41162aee8b2e6c69cb06375b8d..ecfd3fc56794a377bc7b9593861b6a72bc76fcdc 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -35,7 +35,6 @@
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/result_codes.h"
-#include "gpu/command_buffer/common/constants.h"
#include "gpu/command_buffer/service/gpu_switches.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_switches.h"
@@ -723,7 +722,7 @@ void GpuProcessHost::EstablishGpuChannel(
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableGpuShaderDiskCache)) {
- CreateChannelCache(client_id, gpu::kDefaultMaxProgramCacheMemoryBytes);
+ CreateChannelCache(client_id);
}
}
@@ -1253,7 +1252,7 @@ void GpuProcessHost::LoadedShader(const std::string& key,
Send(new GpuMsg_LoadedShader(data));
}
-void GpuProcessHost::CreateChannelCache(int32 client_id, size_t cache_size) {
+void GpuProcessHost::CreateChannelCache(int32 client_id) {
TRACE_EVENT0("gpu", "GpuProcessHost::CreateChannelCache");
scoped_refptr<ShaderDiskCache> cache =
@@ -1261,7 +1260,6 @@ void GpuProcessHost::CreateChannelCache(int32 client_id, size_t cache_size) {
if (!cache.get())
return;
- cache->set_max_cache_size(cache_size);
cache->set_host_id(host_id_);
client_id_to_shader_cache_[client_id] = cache;
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/gpu/shader_disk_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698