BufferSlot.cs 1.2 KB

1234567891011121314151617181920212223242526272829
  1. using Ryujinx.HLE.HOS.Services.SurfaceFlinger.Types;
  2. using Ryujinx.HLE.HOS.Services.Time.Clock;
  3. namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
  4. {
  5. class BufferSlot
  6. {
  7. public AndroidStrongPointer<GraphicBuffer> GraphicBuffer;
  8. public BufferState BufferState;
  9. public bool RequestBufferCalled;
  10. public ulong FrameNumber;
  11. public AndroidFence Fence;
  12. public bool AcquireCalled;
  13. public bool NeedsCleanupOnRelease;
  14. public bool AttachedByConsumer;
  15. public TimeSpanType QueueTime;
  16. public TimeSpanType PresentationTime;
  17. public bool IsPreallocated;
  18. public BufferSlot()
  19. {
  20. GraphicBuffer = new AndroidStrongPointer<GraphicBuffer>();
  21. BufferState = BufferState.Free;
  22. QueueTime = TimeSpanType.Zero;
  23. PresentationTime = TimeSpanType.Zero;
  24. IsPreallocated = false;
  25. }
  26. }
  27. }