| 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 "cc/tiles/software_image_decode_cache.h" | 5 #include "cc/tiles/software_image_decode_cache.h" |
| 6 | 6 |
| 7 #include <inttypes.h> | 7 #include <inttypes.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 max_items_in_cache_ = kSuspendedMaxItemsInCache; | 1156 max_items_in_cache_ = kSuspendedMaxItemsInCache; |
| 1157 break; | 1157 break; |
| 1158 case base::MemoryState::UNKNOWN: | 1158 case base::MemoryState::UNKNOWN: |
| 1159 NOTREACHED(); | 1159 NOTREACHED(); |
| 1160 return; | 1160 return; |
| 1161 } | 1161 } |
| 1162 } | 1162 } |
| 1163 ReduceCacheUsage(); | 1163 ReduceCacheUsage(); |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 void SoftwareImageDecodeCache::OnPurgeMemory() { |
| 1167 // TODO(bashi): Make ReduceCacheUsage take a parameter and call |
| 1168 // ReduceCacheUsage(kSuspendedMaxItemsInCache). crbug.com/684287 |
| 1169 } |
| 1170 |
| 1166 } // namespace cc | 1171 } // namespace cc |
| OLD | NEW |