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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebMemoryCoordinator.cpp

Issue 2402643002: Make RenderThreadImpl a client of memory coordinator (Closed)
Patch Set: Address on haraken's review Created 4 years, 2 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "public/platform/WebMemoryCoordinator.h" 5 #include "public/platform/WebMemoryCoordinator.h"
6 6
7 #include "platform/MemoryCoordinator.h" 7 #include "platform/MemoryCoordinator.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 void WebMemoryCoordinator::onMemoryPressure( 11 void WebMemoryCoordinator::onMemoryPressure(
12 WebMemoryPressureLevel pressureLevel) { 12 WebMemoryPressureLevel pressureLevel) {
13 MemoryCoordinator::instance().onMemoryPressure(pressureLevel); 13 MemoryCoordinator::instance().onMemoryPressure(pressureLevel);
14 } 14 }
15 15
16 void WebMemoryCoordinator::onMemoryStateChange(MemoryState state) {
17 MemoryCoordinator::instance().onMemoryStateChange(state);
18 }
19
16 void WebMemoryCoordinator::prepareToSuspend() { 20 void WebMemoryCoordinator::prepareToSuspend() {
17 MemoryCoordinator::instance().prepareToSuspend(); 21 MemoryCoordinator::instance().prepareToSuspend();
18 } 22 }
19 23
20 } // namespace blink 24 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/MemoryCoordinator.cpp ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698