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

Unified Diff: third_party/WebKit/Source/platform/MemoryCoordinator.cpp

Issue 2510353005: Move ProcessHeap::isLowEndDevice to MemoryCoordinator (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/MemoryCoordinator.cpp
diff --git a/third_party/WebKit/Source/platform/MemoryCoordinator.cpp b/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
index 1a6c3a2c1021fbd2cf03a1dcdbdbb5a625918dc0..68cea3f2dcf9b655e2685338e1baf2fb79920b27 100644
--- a/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
+++ b/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
@@ -4,6 +4,7 @@
#include "platform/MemoryCoordinator.h"
+#include "base/sys_info.h"
#include "platform/fonts/FontCache.h"
#include "platform/graphics/ImageDecodingStore.h"
#include "platform/tracing/TraceEvent.h"
@@ -18,7 +19,8 @@ MemoryCoordinator& MemoryCoordinator::instance() {
return *external.get();
}
-MemoryCoordinator::MemoryCoordinator() {}
+MemoryCoordinator::MemoryCoordinator()
+ : m_isLowEndDevice(base::SysInfo::IsLowEndDevice()) {}
void MemoryCoordinator::registerClient(MemoryCoordinatorClient* client) {
DCHECK(isMainThread());
« no previous file with comments | « third_party/WebKit/Source/platform/MemoryCoordinator.h ('k') | third_party/WebKit/Source/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698