aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_system_sys__info.h
blob: 48f85cbb38e13cd1819c0a1ac483809e29034e31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- base/system/sys_info.h.orig	2019-12-16 21:50:40 UTC
+++ base/system/sys_info.h
@@ -188,6 +188,8 @@ class BASE_EXPORT SysInfo {
   // See also SysUtils.java, method isLowEndDevice.
   static bool IsLowEndDevice();
 
+  static uint64_t MaxSharedMemorySize();
+
  private:
   FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory);
   FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo);
@@ -197,7 +199,7 @@ class BASE_EXPORT SysInfo {
   static bool IsLowEndDeviceImpl();
   static HardwareInfo GetHardwareInfoSync();
 
-#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX)
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX) || defined(OS_BSD)
   static int64_t AmountOfAvailablePhysicalMemory(
       const SystemMemoryInfoKB& meminfo);
 #endif