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

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

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.h
diff --git a/third_party/WebKit/Source/platform/MemoryCoordinator.h b/third_party/WebKit/Source/platform/MemoryCoordinator.h
index 0aa61c576e6a2fab183781000ee124da85bc1f2e..6ee61fb971b072853da56eaa5fd14edaa7642f3f 100644
--- a/third_party/WebKit/Source/platform/MemoryCoordinator.h
+++ b/third_party/WebKit/Source/platform/MemoryCoordinator.h
@@ -42,6 +42,8 @@ class PLATFORM_EXPORT MemoryCoordinator final
void onMemoryStateChange(MemoryState);
+ bool isLowEndDevice() const { return m_isLowEndDevice; }
+
DECLARE_TRACE();
private:
@@ -50,6 +52,8 @@ class PLATFORM_EXPORT MemoryCoordinator final
void clearMemory();
HeapHashSet<WeakMember<MemoryCoordinatorClient>> m_clients;
+
+ bool m_isLowEndDevice;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCache.cpp ('k') | third_party/WebKit/Source/platform/MemoryCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698