2020-04-21 21:10:27 -07:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.SurfaceFlinger.Types;
|
2020-05-14 18:30:08 -07:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.Time.Clock;
|
2020-04-21 21:10:27 -07:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
|
|
|
|
|
{
|
|
|
|
|
class BufferSlot
|
|
|
|
|
{
|
|
|
|
|
public AndroidStrongPointer<GraphicBuffer> GraphicBuffer;
|
|
|
|
|
public BufferState BufferState;
|
|
|
|
|
public bool RequestBufferCalled;
|
|
|
|
|
public ulong FrameNumber;
|
|
|
|
|
public AndroidFence Fence;
|
|
|
|
|
public bool AcquireCalled;
|
|
|
|
|
public bool NeedsCleanupOnRelease;
|
|
|
|
|
public bool AttachedByConsumer;
|
2020-05-14 18:30:08 -07:00
|
|
|
|
public TimeSpanType QueueTime;
|
|
|
|
|
public TimeSpanType PresentationTime;
|
2020-06-02 08:58:19 -07:00
|
|
|
|
public bool IsPreallocated;
|
2020-04-21 21:10:27 -07:00
|
|
|
|
|
|
|
|
|
public BufferSlot()
|
|
|
|
|
{
|
2020-05-14 18:30:08 -07:00
|
|
|
|
GraphicBuffer = new AndroidStrongPointer<GraphicBuffer>();
|
|
|
|
|
BufferState = BufferState.Free;
|
|
|
|
|
QueueTime = TimeSpanType.Zero;
|
|
|
|
|
PresentationTime = TimeSpanType.Zero;
|
2020-06-02 08:58:19 -07:00
|
|
|
|
IsPreallocated = false;
|
2020-04-21 21:10:27 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|