Title: [164037] trunk/Source/WebKit/mac
Revision
164037
Author
m...@apple.com
Date
2014-02-13 10:36:11 -0800 (Thu, 13 Feb 2014)

Log Message

iOS build fix.

* WebView/WebView.mm:
(+[WebView registerForMemoryNotifications]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (164036 => 164037)


--- trunk/Source/WebKit/mac/ChangeLog	2014-02-13 18:31:45 UTC (rev 164036)
+++ trunk/Source/WebKit/mac/ChangeLog	2014-02-13 18:36:11 UTC (rev 164037)
@@ -1,3 +1,10 @@
+2014-02-13  Dan Bernstein  <m...@apple.com>
+
+        iOS build fix.
+
+        * WebView/WebView.mm:
+        (+[WebView registerForMemoryNotifications]):
+
 2014-02-12  Alexey Proskuryakov  <a...@apple.com>
 
         Wrap WebCrypto keys in SerializedScriptValue

Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (164036 => 164037)


--- trunk/Source/WebKit/mac/WebView/WebView.mm	2014-02-13 18:31:45 UTC (rev 164036)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm	2014-02-13 18:36:11 UTC (rev 164037)
@@ -1238,7 +1238,11 @@
         [WebView _handleMemoryWarning];
     }, shouldAutoClearPressureOnMemoryRelease);
 
+#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
+    static dispatch_source_t memoryNotificationEventSource = dispatch_source_create(DISPATCH_SOURCE_TYPE_MEMORYSTATUS, 0, DISPATCH_MEMORYSTATUS_PRESSURE_WARN, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0));
+#else
     static dispatch_source_t memoryNotificationEventSource = dispatch_source_create(DISPATCH_SOURCE_TYPE_VM, 0, DISPATCH_VM_PRESSURE, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0));
+#endif
     dispatch_source_set_event_handler(memoryNotificationEventSource, ^{
         // Set memory pressure flag and schedule releasing memory in web thread runloop exit.
         memoryPressureHandler().setReceivedMemoryPressure(WebCore::MemoryPressureReasonVMPressure);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to