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

Unified Diff: content/browser/gpu/shader_disk_cache.h

Issue 2469413002: gpu shader cache: Make ShaderClearHelper non-refcounted. (Closed)
Patch Set: update map before Clear() Created 4 years, 1 month 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 | « no previous file | content/browser/gpu/shader_disk_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/shader_disk_cache.h
diff --git a/content/browser/gpu/shader_disk_cache.h b/content/browser/gpu/shader_disk_cache.h
index 975bc080351ac26ef808d40a3eb7a04999f997b5..dbe7ef0c837be7fa6c6f61ba918a97c3efadd4ab 100644
--- a/content/browser/gpu/shader_disk_cache.h
+++ b/content/browser/gpu/shader_disk_cache.h
@@ -155,14 +155,14 @@ class CONTENT_EXPORT ShaderCacheFactory
scoped_refptr<ShaderDiskCache> GetByPath(const base::FilePath& path);
void CacheCleared(const base::FilePath& path);
- typedef std::map<base::FilePath, ShaderDiskCache*> ShaderCacheMap;
+ using ShaderCacheMap = std::map<base::FilePath, ShaderDiskCache*>;
ShaderCacheMap shader_cache_map_;
- typedef std::map<int32_t, base::FilePath> ClientIdToPathMap;
+ using ClientIdToPathMap = std::map<int32_t, base::FilePath>;
ClientIdToPathMap client_id_to_path_map_;
- typedef std::queue<scoped_refptr<ShaderClearHelper> > ShaderClearQueue;
- typedef std::map<base::FilePath, ShaderClearQueue> ShaderClearMap;
+ using ShaderClearQueue = std::queue<std::unique_ptr<ShaderClearHelper>>;
+ using ShaderClearMap = std::map<base::FilePath, ShaderClearQueue>;
ShaderClearMap shader_clear_map_;
DISALLOW_COPY_AND_ASSIGN(ShaderCacheFactory);
« no previous file with comments | « no previous file | content/browser/gpu/shader_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698