Title: [211582] trunk/Source/WebCore
Revision
211582
Author
[email protected]
Date
2017-02-02 12:22:15 -0800 (Thu, 02 Feb 2017)

Log Message

Unreviewed attempt to fix the Windows build after r211571.

* platform/MemoryPressureHandler.cpp:
(WebCore::thresholdForPolicy):
(WebCore::policyForFootprint):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (211581 => 211582)


--- trunk/Source/WebCore/ChangeLog	2017-02-02 20:21:58 UTC (rev 211581)
+++ trunk/Source/WebCore/ChangeLog	2017-02-02 20:22:15 UTC (rev 211582)
@@ -1,3 +1,11 @@
+2017-02-02  Chris Dumez  <[email protected]>
+
+        Unreviewed attempt to fix the Windows build after r211571.
+
+        * platform/MemoryPressureHandler.cpp:
+        (WebCore::thresholdForPolicy):
+        (WebCore::policyForFootprint):
+
 2017-02-02  Brent Fulgham  <[email protected]>
 
         Correct memory leak in MediaConstraints

Modified: trunk/Source/WebCore/platform/MemoryPressureHandler.cpp (211581 => 211582)


--- trunk/Source/WebCore/platform/MemoryPressureHandler.cpp	2017-02-02 20:21:58 UTC (rev 211581)
+++ trunk/Source/WebCore/platform/MemoryPressureHandler.cpp	2017-02-02 20:22:15 UTC (rev 211582)
@@ -67,7 +67,7 @@
 }
 #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 MemoryUsagePolicy policyForFootprint(size_t footprint)
+static inline MemoryUsagePolicy policyForFootprint(size_t footprint)
 {
     if (footprint >= thresholdForPolicy(MemoryUsagePolicy::Panic))
         return MemoryUsagePolicy::Panic;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to