OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "platform/MemoryCoordinator.h" | 5 #include "platform/MemoryCoordinator.h" |
6 | 6 |
7 #include "base/sys_info.h" | 7 #include "base/sys_info.h" |
8 #include "platform/fonts/FontCache.h" | 8 #include "platform/fonts/FontCache.h" |
9 #include "platform/graphics/ImageDecodingStore.h" | 9 #include "platform/graphics/ImageDecodingStore.h" |
10 #include "platform/instrumentation/tracing/TraceEvent.h" | 10 #include "platform/instrumentation/tracing/TraceEvent.h" |
11 #include "wtf/allocator/Partitions.h" | 11 #include "platform/wtf/allocator/Partitions.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 // static | 15 // static |
16 bool MemoryCoordinator::is_low_end_device_ = false; | 16 bool MemoryCoordinator::is_low_end_device_ = false; |
17 | 17 |
18 // static | 18 // static |
19 bool MemoryCoordinator::IsLowEndDevice() { | 19 bool MemoryCoordinator::IsLowEndDevice() { |
20 return is_low_end_device_; | 20 return is_low_end_device_; |
21 } | 21 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // MemoryCoordinatorClients rather than clearing caches here. | 84 // MemoryCoordinatorClients rather than clearing caches here. |
85 ImageDecodingStore::Instance().Clear(); | 85 ImageDecodingStore::Instance().Clear(); |
86 FontCache::GetFontCache()->Invalidate(); | 86 FontCache::GetFontCache()->Invalidate(); |
87 } | 87 } |
88 | 88 |
89 DEFINE_TRACE(MemoryCoordinator) { | 89 DEFINE_TRACE(MemoryCoordinator) { |
90 visitor->Trace(clients_); | 90 visitor->Trace(clients_); |
91 } | 91 } |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
OLD | NEW |