OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CC_RESOURCES_RESOURCE_POOL_H_ | 5 #ifndef CC_RESOURCES_RESOURCE_POOL_H_ |
6 #define CC_RESOURCES_RESOURCE_POOL_H_ | 6 #define CC_RESOURCES_RESOURCE_POOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <deque> | 11 #include <deque> |
12 #include <map> | 12 #include <map> |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/trace_event/memory_dump_provider.h" | 17 #include "base/trace_event/memory_dump_provider.h" |
18 #include "cc/base/cc_export.h" | 18 #include "cc/base/cc_export.h" |
19 #include "cc/output/renderer.h" | |
20 #include "cc/resources/resource.h" | 19 #include "cc/resources/resource.h" |
21 #include "cc/resources/resource_format.h" | 20 #include "cc/resources/resource_format.h" |
22 #include "cc/resources/scoped_resource.h" | 21 #include "cc/resources/scoped_resource.h" |
23 | 22 |
24 namespace cc { | 23 namespace cc { |
25 | 24 |
26 class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider { | 25 class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider { |
27 public: | 26 public: |
28 static std::unique_ptr<ResourcePool> CreateForGpuMemoryBufferResources( | 27 static std::unique_ptr<ResourcePool> CreateForGpuMemoryBufferResources( |
29 ResourceProvider* resource_provider, | 28 ResourceProvider* resource_provider, |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 base::TimeDelta resource_expiration_delay_; | 175 base::TimeDelta resource_expiration_delay_; |
177 | 176 |
178 base::WeakPtrFactory<ResourcePool> weak_ptr_factory_; | 177 base::WeakPtrFactory<ResourcePool> weak_ptr_factory_; |
179 | 178 |
180 DISALLOW_COPY_AND_ASSIGN(ResourcePool); | 179 DISALLOW_COPY_AND_ASSIGN(ResourcePool); |
181 }; | 180 }; |
182 | 181 |
183 } // namespace cc | 182 } // namespace cc |
184 | 183 |
185 #endif // CC_RESOURCES_RESOURCE_POOL_H_ | 184 #endif // CC_RESOURCES_RESOURCE_POOL_H_ |
OLD | NEW |