aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferSlot.cs
blob: dbfba0ee8fae67df6a5116365b157e55798557d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Ryujinx.HLE.HOS.Services.SurfaceFlinger.Types;

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 BufferSlot()
        {
            GraphicBuffer = new AndroidStrongPointer<GraphicBuffer>();
            BufferState   = BufferState.Free;
        }
    }
}