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 #include <unordered_map> |
14 | 14 |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/single_thread_task_runner.h" |
18 #include "base/threading/thread_checker.h" | 19 #include "base/threading/thread_checker.h" |
19 #include "net/disk_cache/disk_cache.h" | 20 #include "net/disk_cache/disk_cache.h" |
20 | 21 |
21 namespace gpu { | 22 namespace gpu { |
22 | 23 |
23 class ShaderCacheFactory; | 24 class ShaderCacheFactory; |
24 class ShaderDiskCacheEntry; | 25 class ShaderDiskCacheEntry; |
25 class ShaderDiskReadHelper; | 26 class ShaderDiskReadHelper; |
26 class ShaderClearHelper; | 27 class ShaderClearHelper; |
27 | 28 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 using ShaderClearQueue = std::queue<std::unique_ptr<ShaderClearHelper>>; | 157 using ShaderClearQueue = std::queue<std::unique_ptr<ShaderClearHelper>>; |
157 using ShaderClearMap = std::map<base::FilePath, ShaderClearQueue>; | 158 using ShaderClearMap = std::map<base::FilePath, ShaderClearQueue>; |
158 ShaderClearMap shader_clear_map_; | 159 ShaderClearMap shader_clear_map_; |
159 | 160 |
160 DISALLOW_COPY_AND_ASSIGN(ShaderCacheFactory); | 161 DISALLOW_COPY_AND_ASSIGN(ShaderCacheFactory); |
161 }; | 162 }; |
162 | 163 |
163 } // namespace gpu | 164 } // namespace gpu |
164 | 165 |
165 #endif // GPU_IPC_HOST_SHADER_DISK_CACHE_H_ | 166 #endif // GPU_IPC_HOST_SHADER_DISK_CACHE_H_ |
OLD | NEW |