| 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());
|
|
|
|
|