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

Unified Diff: gpu/ipc/host/shader_disk_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
« no previous file with comments | « gpu/command_buffer/service/memory_program_cache_unittest.cc ('k') | gpu/ipc/host/shader_disk_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/host/shader_disk_cache.h
diff --git a/gpu/ipc/host/shader_disk_cache.h b/gpu/ipc/host/shader_disk_cache.h
index 4080737d2fe50b15e7bab117378b64e583c78135..f8d6f5eb07c367789430514efcc27df49392882b 100644
--- a/gpu/ipc/host/shader_disk_cache.h
+++ b/gpu/ipc/host/shader_disk_cache.h
@@ -116,6 +116,13 @@ class ShaderCacheFactory : NON_EXPORTED_BASE(public base::ThreadChecker) {
const base::Time& end_time,
const base::Closure& callback);
+ // Same as ClearByPath, but looks up the cache by |client_id|. The |callback|
+ // will be executed when the clear is complete.
+ void ClearByClientId(int32_t client_id,
+ const base::Time& begin_time,
+ const base::Time& end_time,
+ const base::Closure& callback);
+
// Retrieve the shader disk cache for the provided |client_id|.
scoped_refptr<ShaderDiskCache> Get(int32_t client_id);
« no previous file with comments | « gpu/command_buffer/service/memory_program_cache_unittest.cc ('k') | gpu/ipc/host/shader_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698