From cfcb958e13aa951e8ceb10f8af737b1fb2002066 Mon Sep 17 00:00:00 2001 From: tj_devel709 Date: Fri, 9 Jul 2021 17:14:32 -0500 Subject: [PATCH] Initial Changes --- src/iosurface.cs | 8 ++++++++ tests/xtro-sharpie/MacCatalyst-IOSurface.ignore | 2 ++ tests/xtro-sharpie/MacCatalyst-IOSurface.todo | 5 ----- tests/xtro-sharpie/iOS-IOSurface.todo | 2 -- tests/xtro-sharpie/macOS-IOSurface.todo | 2 -- tests/xtro-sharpie/tvOS-IOSurface.todo | 2 -- 6 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 tests/xtro-sharpie/MacCatalyst-IOSurface.ignore delete mode 100644 tests/xtro-sharpie/MacCatalyst-IOSurface.todo delete mode 100644 tests/xtro-sharpie/iOS-IOSurface.todo delete mode 100644 tests/xtro-sharpie/macOS-IOSurface.todo delete mode 100644 tests/xtro-sharpie/tvOS-IOSurface.todo diff --git a/src/iosurface.cs b/src/iosurface.cs index 35bbdeb85d3d..cf8e41e09d96 100644 --- a/src/iosurface.cs +++ b/src/iosurface.cs @@ -228,5 +228,13 @@ NSDictionary AllAttachments { [iOS (11,0)][Mac (10,13)] [Internal, Export ("setPurgeable:oldState:")] int _SetPurgeable (IOSurfacePurgeabilityState newState, IntPtr oldStatePtr); + + [Watch (4,0), TV (11,0), Mac (10,6), iOS (11,0), MacCatalyst (13,0)] + [Field ("kIOSurfaceColorSpace")] + NSString kIOSurfaceColorSpace { get; } + + [Watch (4,0), TV (11,0), Mac (10,6), iOS (11,0), MacCatalyst (13,0)] + [Field ("kIOSurfaceICCProfile")] + NSString kIOSurfaceICCProfile { get; } } } diff --git a/tests/xtro-sharpie/MacCatalyst-IOSurface.ignore b/tests/xtro-sharpie/MacCatalyst-IOSurface.ignore new file mode 100644 index 000000000000..b8ba20110f2f --- /dev/null +++ b/tests/xtro-sharpie/MacCatalyst-IOSurface.ignore @@ -0,0 +1,2 @@ +!missing-pinvoke! IOSurfaceCreateXPCObject is not bound +!missing-pinvoke! IOSurfaceLookupFromXPCObject is not bound diff --git a/tests/xtro-sharpie/MacCatalyst-IOSurface.todo b/tests/xtro-sharpie/MacCatalyst-IOSurface.todo deleted file mode 100644 index 071f1f1295c8..000000000000 --- a/tests/xtro-sharpie/MacCatalyst-IOSurface.todo +++ /dev/null @@ -1,5 +0,0 @@ -!missing-pinvoke! IOSurfaceCreateXPCObject is not bound -!missing-pinvoke! IOSurfaceLookupFromXPCObject is not bound -## appended from unclassified file -!missing-field! kIOSurfaceColorSpace not bound -!missing-field! kIOSurfaceICCProfile not bound diff --git a/tests/xtro-sharpie/iOS-IOSurface.todo b/tests/xtro-sharpie/iOS-IOSurface.todo deleted file mode 100644 index eb8e8123a07b..000000000000 --- a/tests/xtro-sharpie/iOS-IOSurface.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! kIOSurfaceColorSpace not bound -!missing-field! kIOSurfaceICCProfile not bound diff --git a/tests/xtro-sharpie/macOS-IOSurface.todo b/tests/xtro-sharpie/macOS-IOSurface.todo deleted file mode 100644 index eb8e8123a07b..000000000000 --- a/tests/xtro-sharpie/macOS-IOSurface.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! kIOSurfaceColorSpace not bound -!missing-field! kIOSurfaceICCProfile not bound diff --git a/tests/xtro-sharpie/tvOS-IOSurface.todo b/tests/xtro-sharpie/tvOS-IOSurface.todo deleted file mode 100644 index eb8e8123a07b..000000000000 --- a/tests/xtro-sharpie/tvOS-IOSurface.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! kIOSurfaceColorSpace not bound -!missing-field! kIOSurfaceICCProfile not bound