2020-04-22 04:10:27 +00:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.SurfaceFlinger.Types;
|
2020-05-15 01:30:08 +00:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.Time.Clock;
|
2020-04-22 04:10:27 +00: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-15 01:30:08 +00:00
|
|
|
|
public TimeSpanType QueueTime;
|
|
|
|
|
public TimeSpanType PresentationTime;
|
2020-04-22 04:10:27 +00:00
|
|
|
|
|
|
|
|
|
public BufferSlot()
|
|
|
|
|
{
|
2020-05-15 01:30:08 +00:00
|
|
|
|
GraphicBuffer = new AndroidStrongPointer<GraphicBuffer>();
|
|
|
|
|
BufferState = BufferState.Free;
|
|
|
|
|
QueueTime = TimeSpanType.Zero;
|
|
|
|
|
PresentationTime = TimeSpanType.Zero;
|
2020-04-22 04:10:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|