| 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 #include "cc/resources/prioritized_resource_manager.h" | 5 #include "cc/resources/prioritized_resource_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "cc/resources/prioritized_resource.h" | 10 #include "cc/resources/prioritized_resource.h" |
| 11 #include "cc/resources/priority_calculator.h" | 11 #include "cc/resources/priority_calculator.h" |
| 12 #include "cc/trees/proxy.h" | 12 #include "cc/trees/proxy.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 PrioritizedResourceManager::PrioritizedResourceManager(const Proxy* proxy) | 16 PrioritizedResourceManager::PrioritizedResourceManager(const Proxy* proxy) |
| 17 : max_memory_limit_bytes_(DefaultMemoryAllocationLimit()), | 17 : max_memory_limit_bytes_(DefaultMemoryAllocationLimit()), |
| 18 external_priority_cutoff_(PriorityCalculator::AllowEverythingCutoff()), | 18 external_priority_cutoff_(PriorityCalculator::AllowEverythingCutoff()), |
| 19 memory_use_bytes_(0), | 19 memory_use_bytes_(0), |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 previous_backing = backing; | 541 previous_backing = backing; |
| 542 } | 542 } |
| 543 #endif // DCHECK_IS_ON() | 543 #endif // DCHECK_IS_ON() |
| 544 } | 544 } |
| 545 | 545 |
| 546 const Proxy* PrioritizedResourceManager::ProxyForDebug() const { | 546 const Proxy* PrioritizedResourceManager::ProxyForDebug() const { |
| 547 return proxy_; | 547 return proxy_; |
| 548 } | 548 } |
| 549 | 549 |
| 550 } // namespace cc | 550 } // namespace cc |
| OLD | NEW |