Package icyllis.arc3d.engine
Class SurfaceProxy.LazyCallbackResult
java.lang.Object
icyllis.arc3d.engine.SurfaceProxy.LazyCallbackResult
- Enclosing class:
SurfaceProxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanShould the callback be disposed of after it has returned or preserved until the surface is freed.booleanSome lazy callbacks want to set their own (or no key) on theImagethey return. -
Constructor Summary
ConstructorsConstructorDescriptionLazyCallbackResult(@SharedPtr GpuSurface surface) LazyCallbackResult(@SharedPtr GpuSurface surface, boolean syncTargetKey, boolean releaseCallback) -
Method Summary
-
Field Details
-
mSurface
-
mSyncTargetKey
public boolean mSyncTargetKeySome lazy callbacks want to set their own (or no key) on theImagethey return. Others want theImage's key to be kept in sync with the surface's key. This flag controls the key relationship between proxies and their targets.- False: Don't key the
Imagewith the surface's key. The lazy instantiation callback is free to return aImagethat already has a unique key unrelated to the surface's key. - True: Keep the
Image's unique key in sync with the surface's unique key. TheImagereturned from the lazy instantiation callback must not have a unique key or have the same same unique key as the surface. If the surface is later assigned a key it is in turn assigned to theImage.
- False: Don't key the
-
mReleaseCallback
public boolean mReleaseCallbackShould the callback be disposed of after it has returned or preserved until the surface is freed. Only honored if 'mSurface' is not-null. If it is null the callback is preserved.
-
-
Constructor Details
-
LazyCallbackResult
public LazyCallbackResult() -
LazyCallbackResult
-
LazyCallbackResult
public LazyCallbackResult(@SharedPtr @SharedPtr GpuSurface surface, boolean syncTargetKey, boolean releaseCallback)
-