mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-12 11:09:55 +01:00
378259a40a
* Surface Flinger: Implement GetBufferHistory Also fix some bugs on the Surface Flinger implementation * Address Ac_K's comment
27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
using Ryujinx.HLE.HOS.Services.SurfaceFlinger.Types;
|
|
using Ryujinx.HLE.HOS.Services.Time.Clock;
|
|
|
|
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;
|
|
public TimeSpanType QueueTime;
|
|
public TimeSpanType PresentationTime;
|
|
|
|
public BufferSlot()
|
|
{
|
|
GraphicBuffer = new AndroidStrongPointer<GraphicBuffer>();
|
|
BufferState = BufferState.Free;
|
|
QueueTime = TimeSpanType.Zero;
|
|
PresentationTime = TimeSpanType.Zero;
|
|
}
|
|
}
|
|
}
|