IOSurface Changes for Swift
IOSurface
Added IOSurface
Added IOSurface.allocationSize
Added IOSurface.baseAddress
Added IOSurface.bytesPerRow
Added IOSurface.elementHeight
Added IOSurface.elementWidth
Added IOSurface.height
Added IOSurface.isInUse
Added IOSurface.localUseCount
Added IOSurface.lock(options: IOSurfaceLockOptions, seed: UnsafeMutablePointer<UInt32>?) -> IOReturn
Added IOSurface.pixelFormat
Added IOSurface.planeCount
Added IOSurface.seed
Added IOSurface.unlock(options: IOSurfaceLockOptions, seed: UnsafeMutablePointer<UInt32>?) -> IOReturn
Added IOSurface.width
Modified IOSurfaceLockOptions [struct]
| Declaration | Protocols | |
|---|---|---|
| From | struct IOSurfaceLockOptions : OptionSetType {
init(rawValue rawValue: UInt32)
static var ReadOnly: IOSurfaceLockOptions { get }
static var AvoidSync: IOSurfaceLockOptions { get }
} | OptionSetType |
| To | struct IOSurfaceLockOptions : OptionSet {
init(rawValue rawValue: UInt32)
static var readOnly: IOSurfaceLockOptions { get }
static var avoidSync: IOSurfaceLockOptions { get }
func intersect(_ other: IOSurfaceLockOptions) -> IOSurfaceLockOptions
func exclusiveOr(_ other: IOSurfaceLockOptions) -> IOSurfaceLockOptions
mutating func unionInPlace(_ other: IOSurfaceLockOptions)
mutating func intersectInPlace(_ other: IOSurfaceLockOptions)
mutating func exclusiveOrInPlace(_ other: IOSurfaceLockOptions)
func isSubsetOf(_ other: IOSurfaceLockOptions) -> Bool
func isDisjointWith(_ other: IOSurfaceLockOptions) -> Bool
func isSupersetOf(_ other: IOSurfaceLockOptions) -> Bool
mutating func subtractInPlace(_ other: IOSurfaceLockOptions)
func isStrictSupersetOf(_ other: IOSurfaceLockOptions) -> Bool
func isStrictSubsetOf(_ other: IOSurfaceLockOptions) -> Bool
}
extension IOSurfaceLockOptions {
func union(_ other: IOSurfaceLockOptions) -> IOSurfaceLockOptions
func intersection(_ other: IOSurfaceLockOptions) -> IOSurfaceLockOptions
func symmetricDifference(_ other: IOSurfaceLockOptions) -> IOSurfaceLockOptions
}
extension IOSurfaceLockOptions {
func contains(_ member: IOSurfaceLockOptions) -> Bool
mutating func insert(_ newMember: IOSurfaceLockOptions) -> (inserted: Bool, memberAfterInsert: IOSurfaceLockOptions)
mutating func remove(_ member: IOSurfaceLockOptions) -> IOSurfaceLockOptions?
mutating func update(with newMember: IOSurfaceLockOptions) -> IOSurfaceLockOptions?
}
extension IOSurfaceLockOptions {
convenience init()
mutating func formUnion(_ other: IOSurfaceLockOptions)
mutating func formIntersection(_ other: IOSurfaceLockOptions)
mutating func formSymmetricDifference(_ other: IOSurfaceLockOptions)
}
extension IOSurfaceLockOptions {
convenience init<S : Sequence where S.Iterator.Element == IOSurfaceLockOptions>(_ sequence: S)
convenience init(arrayLiteral arrayLiteral: IOSurfaceLockOptions...)
mutating func subtract(_ other: IOSurfaceLockOptions)
func isSubset(of other: IOSurfaceLockOptions) -> Bool
func isSuperset(of other: IOSurfaceLockOptions) -> Bool
func isDisjoint(with other: IOSurfaceLockOptions) -> Bool
func subtracting(_ other: IOSurfaceLockOptions) -> IOSurfaceLockOptions
var isEmpty: Bool { get }
func isStrictSuperset(of other: IOSurfaceLockOptions) -> Bool
func isStrictSubset(of other: IOSurfaceLockOptions) -> Bool
} | OptionSet |
Modified IOSurfaceLockOptions.avoidSync
| Declaration | |
|---|---|
| From | static var AvoidSync: IOSurfaceLockOptions { get } |
| To | static var avoidSync: IOSurfaceLockOptions { get } |
Modified IOSurfaceLockOptions.readOnly
| Declaration | |
|---|---|
| From | static var ReadOnly: IOSurfaceLockOptions { get } |
| To | static var readOnly: IOSurfaceLockOptions { get } |
Modified IOSurfaceRef
| Declaration | Module | |
|---|---|---|
| From | class IOSurface {
} | IOSurface |
| To | class IOSurfaceRef {
} | CoreGraphics |
| Declaration | |
|---|---|
| From | func IOSurfaceCopyAllValues(_ buffer: IOSurface) -> CFDictionary? |
| To | func IOSurfaceCopyAllValues(_ buffer: IOSurfaceRef) -> CFDictionary? |
| Declaration | |
|---|---|
| From | func IOSurfaceCopyValue(_ buffer: IOSurface, _ key: CFString) -> AnyObject? |
| To | func IOSurfaceCopyValue(_ buffer: IOSurfaceRef, _ key: CFString) -> CFTypeRef? |
| Declaration | |
|---|---|
| From | func IOSurfaceCreate(_ properties: CFDictionary) -> IOSurface? |
| To | func IOSurfaceCreate(_ properties: CFDictionary) -> IOSurfaceRef? |
| Declaration | |
|---|---|
| From | func IOSurfaceCreateMachPort(_ buffer: IOSurface) -> mach_port_t |
| To | func IOSurfaceCreateMachPort(_ buffer: IOSurfaceRef) -> mach_port_t |
| Declaration | |
|---|---|
| From | func IOSurfaceCreateXPCObject(_ aSurface: IOSurface) -> xpc_object_t |
| To | func IOSurfaceCreateXPCObject(_ aSurface: IOSurfaceRef) -> xpc_object_t |
| Declaration | |
|---|---|
| From | func IOSurfaceDecrementUseCount(_ buffer: IOSurface) |
| To | func IOSurfaceDecrementUseCount(_ buffer: IOSurfaceRef) |
| Declaration | |
|---|---|
| From | func IOSurfaceGetAllocSize(_ buffer: IOSurface) -> Int |
| To | func IOSurfaceGetAllocSize(_ buffer: IOSurfaceRef) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetBaseAddress(_ buffer: IOSurface) -> UnsafeMutablePointer<Void> |
| To | func IOSurfaceGetBaseAddress(_ buffer: IOSurfaceRef) -> UnsafeMutableRawPointer |
| Declaration | |
|---|---|
| From | func IOSurfaceGetBaseAddressOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> UnsafeMutablePointer<Void> |
| To | func IOSurfaceGetBaseAddressOfPlane(_ buffer: IOSurfaceRef, _ planeIndex: Int) -> UnsafeMutableRawPointer |
| Declaration | |
|---|---|
| From | func IOSurfaceGetBytesPerElement(_ buffer: IOSurface) -> Int |
| To | func IOSurfaceGetBytesPerElement(_ buffer: IOSurfaceRef) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetBytesPerElementOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
| To | func IOSurfaceGetBytesPerElementOfPlane(_ buffer: IOSurfaceRef, _ planeIndex: Int) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetBytesPerRow(_ buffer: IOSurface) -> Int |
| To | func IOSurfaceGetBytesPerRow(_ buffer: IOSurfaceRef) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetBytesPerRowOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
| To | func IOSurfaceGetBytesPerRowOfPlane(_ buffer: IOSurfaceRef, _ planeIndex: Int) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetElementHeight(_ buffer: IOSurface) -> Int |
| To | func IOSurfaceGetElementHeight(_ buffer: IOSurfaceRef) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetElementHeightOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
| To | func IOSurfaceGetElementHeightOfPlane(_ buffer: IOSurfaceRef, _ planeIndex: Int) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetElementWidth(_ buffer: IOSurface) -> Int |
| To | func IOSurfaceGetElementWidth(_ buffer: IOSurfaceRef) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetElementWidthOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
| To | func IOSurfaceGetElementWidthOfPlane(_ buffer: IOSurfaceRef, _ planeIndex: Int) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetHeight(_ buffer: IOSurface) -> Int |
| To | func IOSurfaceGetHeight(_ buffer: IOSurfaceRef) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetHeightOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
| To | func IOSurfaceGetHeightOfPlane(_ buffer: IOSurfaceRef, _ planeIndex: Int) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetID(_ buffer: IOSurface) -> IOSurfaceID |
| To | func IOSurfaceGetID(_ buffer: IOSurfaceRef) -> IOSurfaceID |
| Declaration | |
|---|---|
| From | func IOSurfaceGetPixelFormat(_ buffer: IOSurface) -> OSType |
| To | func IOSurfaceGetPixelFormat(_ buffer: IOSurfaceRef) -> OSType |
| Declaration | |
|---|---|
| From | func IOSurfaceGetPlaneCount(_ buffer: IOSurface) -> Int |
| To | func IOSurfaceGetPlaneCount(_ buffer: IOSurfaceRef) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetSeed(_ buffer: IOSurface) -> UInt32 |
| To | func IOSurfaceGetSeed(_ buffer: IOSurfaceRef) -> UInt32 |
| Declaration | |
|---|---|
| From | func IOSurfaceGetUseCount(_ buffer: IOSurface) -> Int32 |
| To | func IOSurfaceGetUseCount(_ buffer: IOSurfaceRef) -> Int32 |
| Declaration | |
|---|---|
| From | func IOSurfaceGetWidth(_ buffer: IOSurface) -> Int |
| To | func IOSurfaceGetWidth(_ buffer: IOSurfaceRef) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceGetWidthOfPlane(_ buffer: IOSurface, _ planeIndex: Int) -> Int |
| To | func IOSurfaceGetWidthOfPlane(_ buffer: IOSurfaceRef, _ planeIndex: Int) -> Int |
| Declaration | |
|---|---|
| From | func IOSurfaceIncrementUseCount(_ buffer: IOSurface) |
| To | func IOSurfaceIncrementUseCount(_ buffer: IOSurfaceRef) |
| Declaration | |
|---|---|
| From | func IOSurfaceIsInUse(_ buffer: IOSurface) -> Bool |
| To | func IOSurfaceIsInUse(_ buffer: IOSurfaceRef) -> Bool |
| Declaration | |
|---|---|
| From | func IOSurfaceLock(_ buffer: IOSurface, _ options: IOSurfaceLockOptions, _ seed: UnsafeMutablePointer<UInt32>) -> IOReturn |
| To | func IOSurfaceLock(_ buffer: IOSurfaceRef, _ options: IOSurfaceLockOptions, _ seed: UnsafeMutablePointer<UInt32>?) -> IOReturn |
| Declaration | |
|---|---|
| From | func IOSurfaceLookup(_ csid: IOSurfaceID) -> IOSurface? |
| To | func IOSurfaceLookup(_ csid: IOSurfaceID) -> IOSurfaceRef? |
| Declaration | |
|---|---|
| From | func IOSurfaceLookupFromMachPort(_ port: mach_port_t) -> IOSurface? |
| To | func IOSurfaceLookupFromMachPort(_ port: mach_port_t) -> IOSurfaceRef? |
| Declaration | |
|---|---|
| From | func IOSurfaceLookupFromXPCObject(_ xobj: xpc_object_t) -> IOSurface? |
| To | func IOSurfaceLookupFromXPCObject(_ xobj: xpc_object_t) -> IOSurfaceRef? |
| Declaration | |
|---|---|
| From | func IOSurfaceRemoveAllValues(_ buffer: IOSurface) |
| To | func IOSurfaceRemoveAllValues(_ buffer: IOSurfaceRef) |
| Declaration | |
|---|---|
| From | func IOSurfaceRemoveValue(_ buffer: IOSurface, _ key: CFString) |
| To | func IOSurfaceRemoveValue(_ buffer: IOSurfaceRef, _ key: CFString) |
| Declaration | |
|---|---|
| From | func IOSurfaceSetValue(_ buffer: IOSurface, _ key: CFString, _ value: AnyObject) |
| To | func IOSurfaceSetValue(_ buffer: IOSurfaceRef, _ key: CFString, _ value: CFTypeRef) |
| Declaration | |
|---|---|
| From | func IOSurfaceSetValues(_ buffer: IOSurface, _ keysAndValues: CFDictionary) |
| To | func IOSurfaceSetValues(_ buffer: IOSurfaceRef, _ keysAndValues: CFDictionary) |
| Declaration | |
|---|---|
| From | func IOSurfaceUnlock(_ buffer: IOSurface, _ options: IOSurfaceLockOptions, _ seed: UnsafeMutablePointer<UInt32>) -> IOReturn |
| To | func IOSurfaceUnlock(_ buffer: IOSurfaceRef, _ options: IOSurfaceLockOptions, _ seed: UnsafeMutablePointer<UInt32>?) -> IOReturn |