Commit 3c0495f5 authored by tasak's avatar tasak Committed by Commit bot

blink MemoryCoordinator::onPurgeMemory should invoke each client's onPurgeMemory.

BUG=631822,670539

Review-Url: https://codereview.chromium.org/2732203002
Cr-Commit-Position: refs/heads/master@{#455990}
parent add860c4
...@@ -68,6 +68,8 @@ void MemoryCoordinator::onMemoryStateChange(MemoryState state) { ...@@ -68,6 +68,8 @@ void MemoryCoordinator::onMemoryStateChange(MemoryState state) {
} }
void MemoryCoordinator::onPurgeMemory() { void MemoryCoordinator::onPurgeMemory() {
for (auto& client : m_clients)
client->onPurgeMemory();
// Don't call clearMemory() because font cache invalidation always causes full // Don't call clearMemory() because font cache invalidation always causes full
// layout. This increases tab switching cost significantly (e.g. // layout. This increases tab switching cost significantly (e.g.
// en.wikipedia.org/wiki/Wikipedia). So we should not invalidate the font // en.wikipedia.org/wiki/Wikipedia). So we should not invalidate the font
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment