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

Unified Diff: content/child/blink_platform_impl.cc

Issue 2860093003: Implement device-ram client hints header (Closed)
Patch Set: Created 3 years, 7 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
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index e99bb3f585540547c3f4a1749078355f78baea13..f82fde5d37260a20765109806252884c7f4432e4 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -777,6 +777,10 @@ size_t BlinkPlatformImpl::ActualMemoryUsageMB() {
return GetMemoryUsageKB() >> 10;
}
+size_t BlinkPlatformImpl::AmountOfPhysicalMemoryMB() {
+ return static_cast<size_t>(base::SysInfo::AmountOfPhysicalMemoryMB());
+}
+
size_t BlinkPlatformImpl::NumberOfProcessors() {
return static_cast<size_t>(base::SysInfo::NumberOfProcessors());
}

Powered by Google App Engine
This is Rietveld 408576698