structure changes

This commit is contained in:
Maufeat 2025-07-19 03:59:04 +02:00
parent 7cf2b860b4
commit 83ec5869d7
2 changed files with 1 additions and 3 deletions

View file

@ -530,9 +530,7 @@ Status BufferQueueProducer::QueueBuffer(s32 slot, const QueueBufferInput& input,
item.is_droppable = core->dequeue_buffer_cannot_block || async; item.is_droppable = core->dequeue_buffer_cannot_block || async;
item.swap_interval = swap_interval; item.swap_interval = swap_interval;
// TODO: .queue_time should be changed to the correct value
position = (position + 1) % 8; position = (position + 1) % 8;
LOG_WARNING(Service_Nvnflinger, "position={}", position);
core->history[position] = {.frame_number = core->frame_counter, core->history[position] = {.frame_number = core->frame_counter,
.queue_time = timestamp, .queue_time = timestamp,
.state = BufferState::Queued}; .state = BufferState::Queued};

View file

@ -15,7 +15,7 @@ namespace Service::android {
class GraphicBuffer; class GraphicBuffer;
enum class BufferState : u32 { enum class BufferState : s32 {
Free = 0, Free = 0,
Dequeued = 1, Dequeued = 1,
Queued = 2, Queued = 2,