| 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/memory_coordinator_client.h" | 16 #include "base/memory/memory_coordinator_client.h" |
| 17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
| 18 #include "base/trace_event/memory_dump_provider.h" | 18 #include "base/trace_event/memory_dump_provider.h" |
| 19 #include "cc/base/cc_export.h" | 19 #include "cc/cc_export.h" |
| 20 #include "cc/resources/resource.h" | 20 #include "cc/resources/resource.h" |
| 21 #include "cc/resources/resource_format.h" | 21 #include "cc/resources/resource_format.h" |
| 22 #include "cc/resources/scoped_resource.h" | 22 #include "cc/resources/scoped_resource.h" |
| 23 | 23 |
| 24 namespace cc { | 24 namespace cc { |
| 25 | 25 |
| 26 class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider, | 26 class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider, |
| 27 public base::MemoryCoordinatorClient { | 27 public base::MemoryCoordinatorClient { |
| 28 public: | 28 public: |
| 29 // Delay before a resource is considered expired. | 29 // Delay before a resource is considered expired. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 const base::TimeDelta resource_expiration_delay_; | 188 const base::TimeDelta resource_expiration_delay_; |
| 189 | 189 |
| 190 base::WeakPtrFactory<ResourcePool> weak_ptr_factory_; | 190 base::WeakPtrFactory<ResourcePool> weak_ptr_factory_; |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(ResourcePool); | 192 DISALLOW_COPY_AND_ASSIGN(ResourcePool); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace cc | 195 } // namespace cc |
| 196 | 196 |
| 197 #endif // CC_RESOURCES_RESOURCE_POOL_H_ | 197 #endif // CC_RESOURCES_RESOURCE_POOL_H_ |
| OLD | NEW |