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