IOSurface Changes for Swift
IOSurface
Removed kIOSurfaceLockAvoidSync
Removed kIOSurfaceLockReadOnly
Added IOSurfaceLockOptions.init(rawValue: UInt32)
Declaration | |
---|---|
From | func IOSurfaceAlignProperty(_ property: CFString!, _ value: Int) -> Int |
To | func IOSurfaceAlignProperty(_ property: CFString, _ value: Int) -> Int |
Declaration | |
---|---|
From | func IOSurfaceCopyValue(_ buffer: IOSurface!, _ key: CFString!) -> Unmanaged<AnyObject>! |
To | func IOSurfaceCopyValue(_ buffer: IOSurface, _ key: CFString) -> AnyObject? |
Declaration | |
---|---|
From | func IOSurfaceCreate(_ properties: CFDictionary!) -> Unmanaged<IOSurface>! |
To | func IOSurfaceCreate(_ properties: CFDictionary) -> IOSurface? |
Declaration | |
---|---|
From | func IOSurfaceCreateMachPort(_ buffer: IOSurface!) -> mach_port_t |
To | func IOSurfaceCreateMachPort(_ buffer: IOSurface) -> mach_port_t |
Declaration | |
---|---|
From | func IOSurfaceCreateXPCObject(_ aSurface: IOSurface!) -> xpc_object_t! |
To | func IOSurfaceCreateXPCObject(_ aSurface: IOSurface) -> xpc_object_t |
Declaration | |
---|---|
From | func IOSurfaceDecrementUseCount(_ buffer: IOSurface!) |
To | func IOSurfaceDecrementUseCount(_ buffer: IOSurface) |
Declaration | |
---|---|
From | func IOSurfaceGetAllocSize(_ buffer: IOSurface!) -> Int |
To | func IOSurfaceGetAllocSize(_ buffer: IOSurface) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetBaseAddress(_ buffer: IOSurface!) -> UnsafeMutablePointer<Void> |
To | func IOSurfaceGetBaseAddress(_ buffer: IOSurface) -> UnsafeMutablePointer<Void> |
Declaration | |
---|---|
From | func IOSurfaceGetBaseAddressOfPlane(_ buffer: IOSurface!, _ planeIndex: Int) -> UnsafeMutablePointer<Void> |
To | func IOSurfaceGetBaseAddressOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> UnsafeMutablePointer<Void> |
Declaration | |
---|---|
From | func IOSurfaceGetBytesPerElement(_ buffer: IOSurface!) -> Int |
To | func IOSurfaceGetBytesPerElement(_ buffer: IOSurface) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetBytesPerElementOfPlane(_ buffer: IOSurface!, _ planeIndex: Int) -> Int |
To | func IOSurfaceGetBytesPerElementOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetBytesPerRow(_ buffer: IOSurface!) -> Int |
To | func IOSurfaceGetBytesPerRow(_ buffer: IOSurface) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetBytesPerRowOfPlane(_ buffer: IOSurface!, _ planeIndex: Int) -> Int |
To | func IOSurfaceGetBytesPerRowOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetElementHeight(_ buffer: IOSurface!) -> Int |
To | func IOSurfaceGetElementHeight(_ buffer: IOSurface) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetElementHeightOfPlane(_ buffer: IOSurface!, _ planeIndex: Int) -> Int |
To | func IOSurfaceGetElementHeightOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetElementWidth(_ buffer: IOSurface!) -> Int |
To | func IOSurfaceGetElementWidth(_ buffer: IOSurface) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetElementWidthOfPlane(_ buffer: IOSurface!, _ planeIndex: Int) -> Int |
To | func IOSurfaceGetElementWidthOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetHeight(_ buffer: IOSurface!) -> Int |
To | func IOSurfaceGetHeight(_ buffer: IOSurface) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetHeightOfPlane(_ buffer: IOSurface!, _ planeIndex: Int) -> Int |
To | func IOSurfaceGetHeightOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetID(_ buffer: IOSurface!) -> IOSurfaceID |
To | func IOSurfaceGetID(_ buffer: IOSurface) -> IOSurfaceID |
Declaration | |
---|---|
From | func IOSurfaceGetPixelFormat(_ buffer: IOSurface!) -> OSType |
To | func IOSurfaceGetPixelFormat(_ buffer: IOSurface) -> OSType |
Declaration | |
---|---|
From | func IOSurfaceGetPlaneCount(_ buffer: IOSurface!) -> Int |
To | func IOSurfaceGetPlaneCount(_ buffer: IOSurface) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetPropertyAlignment(_ property: CFString!) -> Int |
To | func IOSurfaceGetPropertyAlignment(_ property: CFString) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetPropertyMaximum(_ property: CFString!) -> Int |
To | func IOSurfaceGetPropertyMaximum(_ property: CFString) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetSeed(_ buffer: IOSurface!) -> UInt32 |
To | func IOSurfaceGetSeed(_ buffer: IOSurface) -> UInt32 |
Declaration | |
---|---|
From | func IOSurfaceGetUseCount(_ buffer: IOSurface!) -> Int32 |
To | func IOSurfaceGetUseCount(_ buffer: IOSurface) -> Int32 |
Declaration | |
---|---|
From | func IOSurfaceGetWidth(_ buffer: IOSurface!) -> Int |
To | func IOSurfaceGetWidth(_ buffer: IOSurface) -> Int |
Declaration | |
---|---|
From | func IOSurfaceGetWidthOfPlane(_ buffer: IOSurface!, _ planeIndex: Int) -> Int |
To | func IOSurfaceGetWidthOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
Declaration | |
---|---|
From | func IOSurfaceIncrementUseCount(_ buffer: IOSurface!) |
To | func IOSurfaceIncrementUseCount(_ buffer: IOSurface) |
Declaration | |
---|---|
From | func IOSurfaceIsInUse(_ buffer: IOSurface!) -> Boolean |
To | func IOSurfaceIsInUse(_ buffer: IOSurface) -> Bool |
Modified IOSurfaceLock(_: IOSurface, _: IOSurfaceLockOptions, _: UnsafeMutablePointer<UInt32>) -> IOReturn
Declaration | |
---|---|
From | func IOSurfaceLock(_ buffer: IOSurface!, _ options: UInt32, _ seed: UnsafeMutablePointer<UInt32>) -> IOReturn |
To | func IOSurfaceLock(_ buffer: IOSurface, _ options: IOSurfaceLockOptions, _ seed: UnsafeMutablePointer<UInt32>) -> IOReturn |
Declaration | |
---|---|
From | func IOSurfaceLookup(_ csid: IOSurfaceID) -> IOSurface! |
To | func IOSurfaceLookup(_ csid: IOSurfaceID) -> IOSurface? |
Declaration | |
---|---|
From | func IOSurfaceLookupFromMachPort(_ port: mach_port_t) -> IOSurface! |
To | func IOSurfaceLookupFromMachPort(_ port: mach_port_t) -> IOSurface? |
Declaration | |
---|---|
From | func IOSurfaceLookupFromXPCObject(_ xobj: xpc_object_t!) -> IOSurface! |
To | func IOSurfaceLookupFromXPCObject(_ xobj: xpc_object_t) -> IOSurface? |
Declaration | |
---|---|
From | func IOSurfaceRemoveValue(_ buffer: IOSurface!, _ key: CFString!) |
To | func IOSurfaceRemoveValue(_ buffer: IOSurface, _ key: CFString) |
Declaration | |
---|---|
From | func IOSurfaceSetValue(_ buffer: IOSurface!, _ key: CFString!, _ value: AnyObject!) |
To | func IOSurfaceSetValue(_ buffer: IOSurface, _ key: CFString, _ value: AnyObject) |
Modified IOSurfaceUnlock(_: IOSurface, _: IOSurfaceLockOptions, _: UnsafeMutablePointer<UInt32>) -> IOReturn
Declaration | |
---|---|
From | func IOSurfaceUnlock(_ buffer: IOSurface!, _ options: UInt32, _ seed: UnsafeMutablePointer<UInt32>) -> IOReturn |
To | func IOSurfaceUnlock(_ buffer: IOSurface, _ options: IOSurfaceLockOptions, _ seed: UnsafeMutablePointer<UInt32>) -> IOReturn |
Modified kIOSurfaceAllocSize
Declaration | |
---|---|
From | let kIOSurfaceAllocSize: CFString! |
To | let kIOSurfaceAllocSize: CFString |
Modified kIOSurfaceBytesPerElement
Declaration | |
---|---|
From | let kIOSurfaceBytesPerElement: CFString! |
To | let kIOSurfaceBytesPerElement: CFString |
Modified kIOSurfaceBytesPerRow
Declaration | |
---|---|
From | let kIOSurfaceBytesPerRow: CFString! |
To | let kIOSurfaceBytesPerRow: CFString |
Modified kIOSurfaceCacheMode
Declaration | |
---|---|
From | let kIOSurfaceCacheMode: CFString! |
To | let kIOSurfaceCacheMode: CFString |
Modified kIOSurfaceElementHeight
Declaration | |
---|---|
From | let kIOSurfaceElementHeight: CFString! |
To | let kIOSurfaceElementHeight: CFString |
Modified kIOSurfaceElementWidth
Declaration | |
---|---|
From | let kIOSurfaceElementWidth: CFString! |
To | let kIOSurfaceElementWidth: CFString |
Modified kIOSurfaceHeight
Declaration | |
---|---|
From | let kIOSurfaceHeight: CFString! |
To | let kIOSurfaceHeight: CFString |
Modified kIOSurfaceIsGlobal
Declaration | Deprecation | |
---|---|---|
From | let kIOSurfaceIsGlobal: CFString! | -- |
To | let kIOSurfaceIsGlobal: CFString | OS X 10.11 |
Modified kIOSurfaceOffset
Declaration | |
---|---|
From | let kIOSurfaceOffset: CFString! |
To | let kIOSurfaceOffset: CFString |
Modified kIOSurfacePixelFormat
Declaration | |
---|---|
From | let kIOSurfacePixelFormat: CFString! |
To | let kIOSurfacePixelFormat: CFString |
Modified kIOSurfacePlaneBase
Declaration | |
---|---|
From | let kIOSurfacePlaneBase: CFString! |
To | let kIOSurfacePlaneBase: CFString |
Modified kIOSurfacePlaneBytesPerElement
Declaration | |
---|---|
From | let kIOSurfacePlaneBytesPerElement: CFString! |
To | let kIOSurfacePlaneBytesPerElement: CFString |
Modified kIOSurfacePlaneBytesPerRow
Declaration | |
---|---|
From | let kIOSurfacePlaneBytesPerRow: CFString! |
To | let kIOSurfacePlaneBytesPerRow: CFString |
Modified kIOSurfacePlaneElementHeight
Declaration | |
---|---|
From | let kIOSurfacePlaneElementHeight: CFString! |
To | let kIOSurfacePlaneElementHeight: CFString |
Modified kIOSurfacePlaneElementWidth
Declaration | |
---|---|
From | let kIOSurfacePlaneElementWidth: CFString! |
To | let kIOSurfacePlaneElementWidth: CFString |
Modified kIOSurfacePlaneHeight
Declaration | |
---|---|
From | let kIOSurfacePlaneHeight: CFString! |
To | let kIOSurfacePlaneHeight: CFString |
Modified kIOSurfacePlaneInfo
Declaration | |
---|---|
From | let kIOSurfacePlaneInfo: CFString! |
To | let kIOSurfacePlaneInfo: CFString |
Modified kIOSurfacePlaneOffset
Declaration | |
---|---|
From | let kIOSurfacePlaneOffset: CFString! |
To | let kIOSurfacePlaneOffset: CFString |
Modified kIOSurfacePlaneSize
Declaration | |
---|---|
From | let kIOSurfacePlaneSize: CFString! |
To | let kIOSurfacePlaneSize: CFString |
Modified kIOSurfacePlaneWidth
Declaration | |
---|---|
From | let kIOSurfacePlaneWidth: CFString! |
To | let kIOSurfacePlaneWidth: CFString |
Modified kIOSurfaceWidth
Declaration | |
---|---|
From | let kIOSurfaceWidth: CFString! |
To | let kIOSurfaceWidth: CFString |