Documentation Archive Developer
Search

IOSurface Changes for Swift

IOSurface

Removed kIOSurfaceLockAvoidSync
Removed kIOSurfaceLockReadOnly
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

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)

Declaration
From
func IOSurfaceUnlock(_ buffer: IOSurface!, _ options: UInt32, _ seed: UnsafeMutablePointer<UInt32>) -> IOReturn
To
func IOSurfaceUnlock(_ buffer: IOSurface, _ options: IOSurfaceLockOptions, _ seed: UnsafeMutablePointer<UInt32>) -> IOReturn

Declaration
From
let kIOSurfaceAllocSize: CFString!
To
let kIOSurfaceAllocSize: CFString

Declaration
From
let kIOSurfaceBytesPerElement: CFString!
To
let kIOSurfaceBytesPerElement: CFString

Declaration
From
let kIOSurfaceBytesPerRow: CFString!
To
let kIOSurfaceBytesPerRow: CFString

Declaration
From
let kIOSurfaceCacheMode: CFString!
To
let kIOSurfaceCacheMode: CFString

Declaration
From
let kIOSurfaceElementHeight: CFString!
To
let kIOSurfaceElementHeight: CFString

Declaration
From
let kIOSurfaceElementWidth: CFString!
To
let kIOSurfaceElementWidth: CFString

Declaration
From
let kIOSurfaceHeight: CFString!
To
let kIOSurfaceHeight: CFString

DeclarationDeprecation
From
let kIOSurfaceIsGlobal: CFString!
--
To
let kIOSurfaceIsGlobal: CFString
OS X 10.11

Declaration
From
let kIOSurfaceOffset: CFString!
To
let kIOSurfaceOffset: CFString

Declaration
From
let kIOSurfacePixelFormat: CFString!
To
let kIOSurfacePixelFormat: CFString

Declaration
From
let kIOSurfacePlaneBase: CFString!
To
let kIOSurfacePlaneBase: CFString

Declaration
From
let kIOSurfacePlaneBytesPerElement: CFString!
To
let kIOSurfacePlaneBytesPerElement: CFString

Declaration
From
let kIOSurfacePlaneBytesPerRow: CFString!
To
let kIOSurfacePlaneBytesPerRow: CFString

Declaration
From
let kIOSurfacePlaneElementHeight: CFString!
To
let kIOSurfacePlaneElementHeight: CFString

Declaration
From
let kIOSurfacePlaneElementWidth: CFString!
To
let kIOSurfacePlaneElementWidth: CFString

Declaration
From
let kIOSurfacePlaneHeight: CFString!
To
let kIOSurfacePlaneHeight: CFString

Declaration
From
let kIOSurfacePlaneInfo: CFString!
To
let kIOSurfacePlaneInfo: CFString

Declaration
From
let kIOSurfacePlaneOffset: CFString!
To
let kIOSurfacePlaneOffset: CFString

Declaration
From
let kIOSurfacePlaneSize: CFString!
To
let kIOSurfacePlaneSize: CFString

Declaration
From
let kIOSurfacePlaneWidth: CFString!
To
let kIOSurfacePlaneWidth: CFString

Declaration
From
let kIOSurfaceWidth: CFString!
To
let kIOSurfaceWidth: CFString