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

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

Issue 2744363002: Clear shader disk cache after glProgramBinary failure. (Closed)
Patch Set: Remove singleton and clean up init Created 3 years, 9 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
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 f4cc2ec4921b885c9b97675c564901b054de988b..4662e911175a90d486f35b2c9d9e691bf5ad4ebd 100644
--- a/gpu/command_buffer/service/memory_program_cache.h
+++ b/gpu/command_buffer/service/memory_program_cache.h
@@ -20,6 +20,8 @@
namespace gpu {
+class GpuProcessActivityFlags;
+
namespace gles2 {
// Program cache that stores binaries completely in-memory
@@ -27,7 +29,8 @@ class GPU_EXPORT MemoryProgramCache : public ProgramCache {
public:
MemoryProgramCache(size_t max_cache_size_bytes,
bool disable_gpu_shader_disk_cache,
- bool disable_program_caching_for_transform_feedback);
+ bool disable_program_caching_for_transform_feedback,
+ GpuProcessActivityFlags* activity_flags);
~MemoryProgramCache() override;
ProgramLoadResult LoadLinkedProgram(
@@ -168,6 +171,7 @@ class GPU_EXPORT MemoryProgramCache : public ProgramCache {
const bool disable_program_caching_for_transform_feedback_;
size_t curr_size_bytes_;
ProgramMRUCache store_;
+ GpuProcessActivityFlags* activity_flags_;
DISALLOW_COPY_AND_ASSIGN(MemoryProgramCache);
};
« no previous file with comments | « gpu/command_buffer/common/activity_flags_unittest.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