| 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/resource_pool.h" | 5 #include "cc/resources/resource_pool.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <algorithm> | 10 #include <algorithm> |
| 8 #include <utility> | 11 #include <utility> |
| 9 | 12 |
| 10 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
| 11 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 12 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
| 13 #include "base/trace_event/memory_dump_manager.h" | 16 #include "base/trace_event/memory_dump_manager.h" |
| 14 #include "cc/base/container_util.h" | 17 #include "cc/base/container_util.h" |
| 15 #include "cc/resources/resource_provider.h" | 18 #include "cc/resources/resource_provider.h" |
| 16 #include "cc/resources/resource_util.h" | 19 #include "cc/resources/resource_util.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 for (const auto& resource : busy_resources_) { | 314 for (const auto& resource : busy_resources_) { |
| 312 resource->OnMemoryDump(pmd, resource_provider_, false /* is_free */); | 315 resource->OnMemoryDump(pmd, resource_provider_, false /* is_free */); |
| 313 } | 316 } |
| 314 for (const auto& entry : in_use_resources_) { | 317 for (const auto& entry : in_use_resources_) { |
| 315 entry.second->OnMemoryDump(pmd, resource_provider_, false /* is_free */); | 318 entry.second->OnMemoryDump(pmd, resource_provider_, false /* is_free */); |
| 316 } | 319 } |
| 317 return true; | 320 return true; |
| 318 } | 321 } |
| 319 | 322 |
| 320 } // namespace cc | 323 } // namespace cc |
| OLD | NEW |