Unreviewed attempt to fix the Windows build after r211571.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Feb 2017 20:22:15 +0000 (20:22 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 Feb 2017 20:22:15 +0000 (20:22 +0000)
* platform/MemoryPressureHandler.cpp:
(WebCore::thresholdForPolicy):
(WebCore::policyForFootprint):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211582 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/MemoryPressureHandler.cpp

index baad6273b584cc4fa9b227c4f3d36ff032de9954..e1c9871186c4c5e2a111509784555286ea6d5345 100644 (file)
@@ -1,3 +1,11 @@
+2017-02-02  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed attempt to fix the Windows build after r211571.
+
+        * platform/MemoryPressureHandler.cpp:
+        (WebCore::thresholdForPolicy):
+        (WebCore::policyForFootprint):
+
 2017-02-02  Brent Fulgham  <bfulgham@apple.com>
 
         Correct memory leak in MediaConstraints
index 024a623a44c0be7b5a2bfbd2700dd74ce3d69be7..30515ee5cad3416d54875a5cfacfc48854923a9b 100644 (file)
@@ -67,7 +67,7 @@ static const char* toString(MemoryUsagePolicy policy)
 }
 #endif
 
-static constexpr size_t thresholdForPolicy(MemoryUsagePolicy policy)
+static inline size_t thresholdForPolicy(MemoryUsagePolicy policy)
 {
     switch (policy) {
     case MemoryUsagePolicy::Conservative:
@@ -87,7 +87,7 @@ static constexpr size_t thresholdForPolicy(MemoryUsagePolicy policy)
     }
 }
 
-static constexpr MemoryUsagePolicy policyForFootprint(size_t footprint)
+static inline MemoryUsagePolicy policyForFootprint(size_t footprint)
 {
     if (footprint >= thresholdForPolicy(MemoryUsagePolicy::Panic))
         return MemoryUsagePolicy::Panic;