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

Unified Diff: gpu/command_buffer/service/memory_program_cache.h

Issue 1716813002: Use GpuPreferences to avoid directly accessing switches in gpu related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 10 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 | « gpu/command_buffer/service/mailbox_manager.cc ('k') | gpu/command_buffer/service/memory_program_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager.cc ('k') | gpu/command_buffer/service/memory_program_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698