Class IOSurfaceLockOptions


  • public final class IOSurfaceLockOptions
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int AvoidSync
      If you want to detect/avoid a potentially expensive paging operation (such as readback from a GPU to system memory) when you lock the buffer, you may include this flag.
      static int ReadOnly
      If you are not going to modify the data while you hold the lock, you should set this flag to avoid invalidating any existing caches of the buffer contents.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ReadOnly

        public static final int ReadOnly
        If you are not going to modify the data while you hold the lock, you should set this flag to avoid invalidating any existing caches of the buffer contents. This flag should be passed both to the lock and unlock functions. Non-symmetrical usage of this flag will result in undefined behavior.
        See Also:
        Constant Field Values
      • AvoidSync

        public static final int AvoidSync
        If you want to detect/avoid a potentially expensive paging operation (such as readback from a GPU to system memory) when you lock the buffer, you may include this flag. If locking the buffer requires a readback, the lock will fail with an error return of kIOReturnCannotLock.
        See Also:
        Constant Field Values