mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-24 05:55:30 +00:00
Implement few type in bufferqueue query method
This commit is contained in:
parent
f67605e6aa
commit
88e1e7f14b
|
@ -186,6 +186,10 @@ u32 BufferQueue::Query(QueryType type) {
|
||||||
case QueryType::NativeWindowWidth:
|
case QueryType::NativeWindowWidth:
|
||||||
case QueryType::NativeWindowHeight:
|
case QueryType::NativeWindowHeight:
|
||||||
break;
|
break;
|
||||||
|
case QueryType::NativeWindowMinUndequeuedBuffers:
|
||||||
|
return 0;
|
||||||
|
case QueryType::NativeWindowConsumerUsageBits:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
UNIMPLEMENTED_MSG("Unimplemented query type={}", type);
|
UNIMPLEMENTED_MSG("Unimplemented query type={}", type);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -57,6 +57,11 @@ public:
|
||||||
NativeWindowWidth = 0,
|
NativeWindowWidth = 0,
|
||||||
NativeWindowHeight = 1,
|
NativeWindowHeight = 1,
|
||||||
NativeWindowFormat = 2,
|
NativeWindowFormat = 2,
|
||||||
|
/// The minimum number of buffers that must remain un-dequeued after a buffer has been
|
||||||
|
/// queued
|
||||||
|
NativeWindowMinUndequeuedBuffers = 3,
|
||||||
|
/// The consumer gralloc usage bits currently set by the consumer
|
||||||
|
NativeWindowConsumerUsageBits = 10,
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit BufferQueue(Kernel::KernelCore& kernel, u32 id_, u64 layer_id_,
|
explicit BufferQueue(Kernel::KernelCore& kernel, u32 id_, u64 layer_id_,
|
||||||
|
|
Loading…
Reference in a new issue