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

Unified Diff: webkit/child/webkitplatformsupport_impl.cc

Issue 50903003: Add Platform::physicalMemoryInBytes to WebKitPlatformSupportImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@physicalmemory_renderer
Patch Set: return type to size_t Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/child/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/child/webkitplatformsupport_impl.cc
diff --git a/webkit/child/webkitplatformsupport_impl.cc b/webkit/child/webkitplatformsupport_impl.cc
index 8f68c3a4565c5192dfc3697adb0be1527c5d6e9c..9bdcd25615093e92910244d1f039c018308aae5e 100644
--- a/webkit/child/webkitplatformsupport_impl.cc
+++ b/webkit/child/webkitplatformsupport_impl.cc
@@ -859,6 +859,10 @@ size_t WebKitPlatformSupportImpl::actualMemoryUsageMB() {
return getMemoryUsageMB(true);
}
+size_t WebKitPlatformSupportImpl::physicalMemoryMB() {
+ return static_cast<size_t>(base::SysInfo::AmountOfPhysicalMemoryMB());
+}
+
void WebKitPlatformSupportImpl::startHeapProfiling(
const WebKit::WebString& prefix) {
// FIXME(morrita): Make this built on windows.
« no previous file with comments | « webkit/child/webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698