Package icyllis.arc3d.engine
Class SurfaceProxy.LazyCallbackResult
java.lang.Object
icyllis.arc3d.engine.SurfaceProxy.LazyCallbackResult
- Enclosing class:
SurfaceProxy
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Should the callback be disposed of after it has returned or preserved until the surface is freed.boolean
Some lazy callbacks want to set their own (or no key) on theImage
they return. -
Constructor Summary
ConstructorDescriptionLazyCallbackResult
(@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 theImage
they 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
Image
with the surface's key. The lazy instantiation callback is free to return aImage
that 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. TheImage
returned 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)
-