Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: cc/tiles/software_image_decode_cache.cc

Issue 2648323005: memory coordinator: Add MemoryCoordinatorClient::OnPurgeMemory() (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698