Differential D38165 Diff 118368 www/qt5-webengine/files/patch-src_3rdparty_chromium_base_system_sys__info.h
Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webengine/files/patch-src_3rdparty_chromium_base_system_sys__info.h
--- src/3rdparty/chromium/base/system/sys_info.h.orig 2020-03-16 14:04:24 UTC | --- src/3rdparty/chromium/base/system/sys_info.h.orig 2021-12-15 16:12:54 UTC | ||||
+++ src/3rdparty/chromium/base/system/sys_info.h | +++ src/3rdparty/chromium/base/system/sys_info.h | ||||
@@ -188,6 +188,8 @@ class BASE_EXPORT SysInfo { | @@ -202,6 +202,8 @@ class BASE_EXPORT SysInfo { | ||||
// See also SysUtils.java, method isLowEndDevice. | // On Desktop this returns true when memory <= 512MB. | ||||
static bool IsLowEndDevice(); | static bool IsLowEndDevice(); | ||||
+ static uint64_t MaxSharedMemorySize(); | + static uint64_t MaxSharedMemorySize(); | ||||
+ | + | ||||
private: | private: | ||||
FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory); | FRIEND_TEST_ALL_PREFIXES(SysInfoTest, AmountOfAvailablePhysicalMemory); | ||||
FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo); | FRIEND_TEST_ALL_PREFIXES(debug::SystemMetricsTest, ParseMeminfo); | ||||
@@ -197,7 +199,7 @@ class BASE_EXPORT SysInfo { | @@ -211,7 +213,7 @@ class BASE_EXPORT SysInfo { | ||||
static bool IsLowEndDeviceImpl(); | static bool IsLowEndDeviceImpl(); | ||||
static HardwareInfo GetHardwareInfoSync(); | static HardwareInfo GetHardwareInfoSync(); | ||||
-#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX) | -#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || \ | ||||
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_AIX) || defined(OS_BSD) | +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD) || \ | ||||
defined(OS_AIX) | |||||
static int64_t AmountOfAvailablePhysicalMemory( | static int64_t AmountOfAvailablePhysicalMemory( | ||||
const SystemMemoryInfoKB& meminfo); | const SystemMemoryInfoKB& meminfo); | ||||
#endif |