| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GPU_IPC_HOST_SHADER_DISK_CACHE_H_ | 5 #ifndef GPU_IPC_HOST_SHADER_DISK_CACHE_H_ |
| 6 #define GPU_IPC_HOST_SHADER_DISK_CACHE_H_ | 6 #define GPU_IPC_HOST_SHADER_DISK_CACHE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <queue> | 11 #include <queue> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <unordered_map> |
| 13 | 14 |
| 14 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 15 #include "base/macros.h" | 16 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 17 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
| 18 #include "net/disk_cache/disk_cache.h" | 19 #include "net/disk_cache/disk_cache.h" |
| 19 | 20 |
| 20 namespace gpu { | 21 namespace gpu { |
| 21 | 22 |
| 22 class ShaderCacheFactory; | 23 class ShaderCacheFactory; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 using ShaderClearQueue = std::queue<std::unique_ptr<ShaderClearHelper>>; | 156 using ShaderClearQueue = std::queue<std::unique_ptr<ShaderClearHelper>>; |
| 156 using ShaderClearMap = std::map<base::FilePath, ShaderClearQueue>; | 157 using ShaderClearMap = std::map<base::FilePath, ShaderClearQueue>; |
| 157 ShaderClearMap shader_clear_map_; | 158 ShaderClearMap shader_clear_map_; |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN(ShaderCacheFactory); | 160 DISALLOW_COPY_AND_ASSIGN(ShaderCacheFactory); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace gpu | 163 } // namespace gpu |
| 163 | 164 |
| 164 #endif // GPU_IPC_HOST_SHADER_DISK_CACHE_H_ | 165 #endif // GPU_IPC_HOST_SHADER_DISK_CACHE_H_ |
| OLD | NEW |