mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-25 11:35:12 +00:00
bcb7761eac
* SurfaceFlinger: fix some bugs This fixes some bugs in the current implementation and make it closer to the real implementation. * Fix align of some variables
29 lines
1.2 KiB
C#
29 lines
1.2 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 bool IsPreallocated;
|
|
|
|
public BufferSlot()
|
|
{
|
|
GraphicBuffer = new AndroidStrongPointer<GraphicBuffer>();
|
|
BufferState = BufferState.Free;
|
|
QueueTime = TimeSpanType.Zero;
|
|
PresentationTime = TimeSpanType.Zero;
|
|
IsPreallocated = false;
|
|
}
|
|
}
|
|
}
|