De-PLATFORM(IOS)-ify LayerHostingContext::setFencePort
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Apr 2015 05:02:41 +0000 (05:02 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Apr 2015 05:02:41 +0000 (05:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=143342

* Platform/mac/LayerHostingContext.h:
* Platform/mac/LayerHostingContext.mm:
Actually, not available on Mavericks. Fix the build.

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

Source/WebKit2/ChangeLog
Source/WebKit2/Platform/mac/LayerHostingContext.h
Source/WebKit2/Platform/mac/LayerHostingContext.mm

index 0ae122b..26dddc1 100644 (file)
@@ -1,3 +1,12 @@
+2015-04-02  Timothy Horton  <timothy_horton@apple.com>
+
+        De-PLATFORM(IOS)-ify LayerHostingContext::setFencePort
+        https://bugs.webkit.org/show_bug.cgi?id=143342
+
+        * Platform/mac/LayerHostingContext.h:
+        * Platform/mac/LayerHostingContext.mm:
+        Actually, not available on Mavericks. Fix the build.
+
 2015-04-02  Brady Eidson  <beidson@apple.com>
 
         Unreviewed: Re-applied change after rollout.
index 5784ac7..35e1c8e 100644 (file)
@@ -62,7 +62,9 @@ public:
     void setColorSpace(CGColorSpaceRef);
     CGColorSpaceRef colorSpace() const;
 
+#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
     void setFencePort(mach_port_t);
+#endif
 
 private:
     LayerHostingMode m_layerHostingMode;
index 5802008..f277d38 100644 (file)
@@ -102,9 +102,11 @@ CGColorSpaceRef LayerHostingContext::colorSpace() const
     return [m_context colorSpace];
 }
 
+#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
 void LayerHostingContext::setFencePort(mach_port_t fencePort)
 {
     [m_context setFencePort:fencePort];
 }
+#endif
 
 } // namespace WebKit