Skip to content

CoreGraphics macOS xcode13.0 rc

Alex Soto edited this page Sep 14, 2021 · 1 revision

#CoreGraphics.framework

diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h	2021-08-07 05:20:59.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h	2021-08-03 21:49:55.000000000 -0400
@@ -203,7 +203,7 @@
 #define CG_UNAVAILABLE_DESKTOP API_UNAVAILABLE(macos)
 #define CG_UNAVAILABLE_EMBEDDED API_UNAVAILABLE(ios, tvos, watchos)
 
-#if (defined(TARGET_OS_LINUX) && TARGET_OS_LINUX) || defined(CG_LINUX)
+#if defined(CG_LINUX) || defined(TARGET_OS_LINUX)  
 # undef __OSX_AVAILABLE_STARTING
 # undef __OSX_AVAILABLE_BUT_DEPRECATED
 # undef CG_AVAILABLE_STARTING
@@ -336,13 +336,11 @@
 # define CGFLOAT_IS_DOUBLE 1
 # define CGFLOAT_MIN DBL_MIN
 # define CGFLOAT_MAX DBL_MAX
-# define CGFLOAT_EPSILON DBL_EPSILON
 #else
 # define CGFLOAT_TYPE float
 # define CGFLOAT_IS_DOUBLE 0
 # define CGFLOAT_MIN FLT_MIN
 # define CGFLOAT_MAX FLT_MAX
-# define CGFLOAT_EPSILON FLT_EPSILON
 #endif
 
 /* Definition of the `CGFloat' type and `CGFLOAT_DEFINED'. */
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h	2021-08-07 08:50:55.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h	2021-08-03 21:49:58.000000000 -0400
@@ -124,18 +124,12 @@
 CG_EXTERN const CFStringRef kCGColorSpaceDCIP3
 CG_AVAILABLE_STARTING(10.11, 9.0);
 
-CG_EXTERN const CFStringRef kCGColorSpaceLinearITUR_2020
-CG_AVAILABLE_STARTING(12.0, 15.0);
-
 CG_EXTERN const CFStringRef kCGColorSpaceExtendedITUR_2020
 CG_AVAILABLE_STARTING(11.0, 14.0);
 
 CG_EXTERN const CFStringRef kCGColorSpaceExtendedLinearITUR_2020
 CG_AVAILABLE_STARTING(10.14.3, 12.3);
 
-CG_EXTERN const CFStringRef kCGColorSpaceLinearDisplayP3
-CG_AVAILABLE_STARTING(12.0, 15.0);
-
 CG_EXTERN const CFStringRef kCGColorSpaceExtendedDisplayP3
 CG_AVAILABLE_STARTING(11.0, 14.0);
 
@@ -306,16 +300,12 @@
 CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreatePattern(CGColorSpaceRef __nullable baseSpace)
   CG_AVAILABLE_STARTING(10.0, 2.0);
 
-typedef const struct CF_BRIDGED_TYPE(id) ColorSyncProfile* ColorSyncProfileRef;
-
-CG_EXTERN const CFStringRef kCGColorSpaceExtendedRange;
+/* Create a color space using `ref', a platform-specific color space
+   reference. For MacOS X, `ref' should be a ColorSyncProfileRef. */
 
-/* Create a color space using ColorSyncProfileRef.
-   To create an extended color space include kCGColorSpaceExtendedRange/kCFBooleanTrue
-   key/value pair in `options' dictionary. */
-
-CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithColorSyncProfile(ColorSyncProfileRef __nullable, CFDictionaryRef __nullable options)
-CG_AVAILABLE_STARTING(12.0, 15.0);
+CG_EXTERN CGColorSpaceRef __nullable
+  CGColorSpaceCreateWithPlatformColorSpace(const void * cg_nullable ref)
+  CG_AVAILABLE_STARTING(10.0, 9.0);
 
 /* Create a color space using `name' as the identifier for the color
    space. */
@@ -417,13 +407,6 @@
 CG_EXTERN bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef)
 CG_AVAILABLE_STARTING(11.0, 14.0);
 
-CG_EXTERN bool CGColorSpaceIsPQBased(CGColorSpaceRef s)
-CG_AVAILABLE_STARTING(12.0, 15.0);
-
-CG_EXTERN bool CGColorSpaceIsHLGBased(CGColorSpaceRef s)
-CG_AVAILABLE_STARTING(12.0, 15.0);
-
-
 /* Return true if `space' can be used as a destination color space; false
  otherwise. */
 
@@ -470,11 +453,6 @@
 CG_EXTERN CFDataRef __nullable CGColorSpaceCopyICCProfile(CGColorSpaceRef cg_nullable space)
   CG_AVAILABLE_BUT_DEPRECATED(10.5, 10.13, 2.0, 11.0);
 
-/* Please use `CGColorSpaceCreateWithColorSyncProfile' */
-CG_EXTERN CGColorSpaceRef __nullable
-  CGColorSpaceCreateWithPlatformColorSpace(const void * cg_nullable ref)
-  CG_AVAILABLE_BUT_DEPRECATED(10.0, 12.0, 9.0, 15.0);
-
 
 CF_ASSUME_NONNULL_END
 
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h	2021-07-31 08:01:18.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h	1969-12-31 19:00:00.000000000 -0500
@@ -1,33 +0,0 @@
-/* CoreGraphics - CGConvertColorDataWithFormat.h
-   Copyright (c)2021 Apple Inc.
-   All rights reserved. */
-
-#ifndef CGCONVERTCOLORDATAWITHFORMAT_H
-#define CGCONVERTCOLORDATAWITHFORMAT_H
-
-#include <CoreGraphics/CoreGraphics.h>
-#include <CoreFoundation/CoreFoundation.h>
-
-typedef struct {
-    uint32_t        		version;            // current version = 0
-    CFTypeRef       		colorspace_info;    // one of:
-                                                // - CGColorSpaceRef,
-                                                // - CFStringRef (known name used by CGColorSpaceCreateWithName),
-                                                // - CFPropertyListRef (flattened CGColorSpaceRef used by IOSurface)
-    CGBitmapInfo    		bitmap_info;		// see CGImage.h
-    size_t          		bits_per_component;
-    size_t          		bytes_per_row;      // can be 0, if data is pixel aligned
-    CGColorRenderingIntent	intent;				// set to kCGRenderingIntentDefault if unknown
-    CGFloat*        		decode;             // pass NULL; reserved for future use
-} CGColorDataFormat;
-
-
-CG_EXTERN bool CGConvertColorDataWithFormat(size_t            width,
-                                            size_t            height,
-                                            void*             dst_data,
-                                            CGColorDataFormat dst_format,
-                                            void*             src_data,
-                                            CGColorDataFormat src_format,
-                                            CFDictionaryRef   options);
-
-#endif /* CGCONVERTCOLORDATAWITHFORMAT_H */
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplayMetal.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplayMetal.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplayMetal.h	2021-08-07 05:21:01.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplayMetal.h	2021-08-03 21:49:58.000000000 -0400
@@ -5,11 +5,6 @@
 #ifndef CGDIRECTDISPLAYMETAL_H_
 #define CGDIRECTDISPLAYMETAL_H_
 
-#ifdef __cplusplus
-    extern "C" {
-#endif
-
-
 /* This file only makes sense to Objective C clients */
 #if defined(__OBJC__)
 
@@ -32,8 +27,4 @@
 
 #endif /* __OBJC__ */
 
-#ifdef __cplusplus
-}   /* extern "C" */
-#endif
-
 #endif /* CGDIRECTDISPLAYMETAL_H_ */
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h	2021-07-31 08:01:18.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h	2021-03-16 04:44:10.000000000 -0400
@@ -27,12 +27,4 @@
   kCGErrorNoneAvailable = 1011,
 };
 
-typedef void (*CGErrorCallback)(void);
-
-/* Set a callback for easier detection of error conditions
-   causing CoreGraphics to raise an error.
-   Pass NULL to reset the callback.*/
-
-CG_EXTERN void CGErrorSetCallback(CGErrorCallback callback);
-
 #endif /* CGERROR_H_ */
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes	2021-08-01 06:11:14.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes	2021-03-16 04:44:10.000000000 -0400
@@ -506,8 +506,7 @@
 - Name: CGEventCreateFromData
   SwiftName: CGEvent.init(withDataAllocator:data:)
 - Name: CGEventCreateData
-  SwiftName: CGEvent.__data(allocator:self:)
-  SwiftPrivate: true
+  SwiftName: getter:CGEvent.data(self:)
 - Name: CGEventCreateCopy
   SwiftName: CGEvent.copy(self:)
 - Name: CGEventPostToPid
@@ -1233,12 +1232,8 @@
   SwiftName: CGColorSpace.dcip3
 - Name: kCGColorSpaceExtendedITUR_2020
   SwiftName: CGColorSpace.extendedITUR_2020
-- Name: kCGColorSpaceLinearITUR_2020
-  SwiftName: CGColorSpace.linearITUR_2020
 - Name: kCGColorSpaceExtendedLinearITUR_2020
   SwiftName: CGColorSpace.extendedLinearITUR_2020
-- Name: kCGColorSpaceLinearDisplayP3
-  SwiftName: CGColorSpace.linearDisplayP3
 - Name: kCGColorSpaceExtendedDisplayP3
   SwiftName: CGColorSpace.extendedDisplayP3
 - Name: kCGColorSpaceExtendedLinearDisplayP3
@@ -1255,10 +1250,6 @@
   SwiftName: CGColorSpace.displayP3_HLG
 - Name: kCGColorSpaceITUR_2020_HLG
   SwiftName: CGColorSpace.itur_2020_HLG
-- Name: kCGColorSpaceITUR_2100_HLG
-  SwiftName: CGColorSpace.itur_2100_HLG
-- Name: kCGColorSpaceITUR_2100_PQ
-  SwiftName: CGColorSpace.itur_2100_PQ
 - Name: kCGColorSpaceExtendedSRGB
   SwiftName: CGColorSpace.extendedSRGB
 - Name: kCGColorSpaceLinearSRGB
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h	2021-07-31 08:01:18.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h	2021-03-16 04:44:10.000000000 -0400
@@ -12,7 +12,6 @@
 #include <CoreGraphics/CGColor.h>
 #include <CoreGraphics/CGColorConversionInfo.h>
 #include <CoreGraphics/CGColorSpace.h>
-#include <CoreGraphics/CGConvertColorDataWithFormat.h>
 #include <CoreGraphics/CGContext.h>
 #include <CoreGraphics/CGDataConsumer.h>
 #include <CoreGraphics/CGDataProvider.h>
Clone this wiki locally