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