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

Unified Diff: gpu/ipc/host/shader_disk_cache.cc

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/ipc/host/shader_disk_cache.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/host/shader_disk_cache.cc
diff --git a/gpu/ipc/host/shader_disk_cache.cc b/gpu/ipc/host/shader_disk_cache.cc
index 7d1ad889c705f6ab7c49243d754564c10c013d61..144f9af47832dc2e1b631b53efb41b787cabbf36 100644
--- a/gpu/ipc/host/shader_disk_cache.cc
+++ b/gpu/ipc/host/shader_disk_cache.cc
@@ -496,6 +496,17 @@ void ShaderCacheFactory::ClearByPath(const base::FilePath& path,
helper_ptr->Clear();
}
+void ShaderCacheFactory::ClearByClientId(int32_t client_id,
+ const base::Time& delete_begin,
+ const base::Time& delete_end,
+ const base::Closure& callback) {
+ DCHECK(CalledOnValidThread());
+ ClientIdToPathMap::iterator iter = client_id_to_path_map_.find(client_id);
+ if (iter == client_id_to_path_map_.end())
+ return;
+ return ClearByPath(iter->second, delete_begin, delete_end, callback);
+}
+
void ShaderCacheFactory::CacheCleared(const base::FilePath& path) {
DCHECK(CalledOnValidThread());
« no previous file with comments | « gpu/ipc/host/shader_disk_cache.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698