mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 23:40:02 +00:00
service/nvflinger: Mark FindVsyncEvent() as a const member function
This member function doesn't actually modify instance state, so it can be marked as a const member function.
This commit is contained in:
parent
3c02cdcc57
commit
7320c667df
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ u32 NVFlinger::FindBufferQueueId(u64 display_id, u64 layer_id) const {
|
||||||
return layer.buffer_queue->GetId();
|
return layer.buffer_queue->GetId();
|
||||||
}
|
}
|
||||||
|
|
||||||
Kernel::SharedPtr<Kernel::ReadableEvent> NVFlinger::FindVsyncEvent(u64 display_id) {
|
Kernel::SharedPtr<Kernel::ReadableEvent> NVFlinger::FindVsyncEvent(u64 display_id) const {
|
||||||
return FindDisplay(display_id).vsync_event.readable;
|
return FindDisplay(display_id).vsync_event.readable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ public:
|
||||||
u32 FindBufferQueueId(u64 display_id, u64 layer_id) const;
|
u32 FindBufferQueueId(u64 display_id, u64 layer_id) const;
|
||||||
|
|
||||||
/// Gets the vsync event for the specified display.
|
/// Gets the vsync event for the specified display.
|
||||||
Kernel::SharedPtr<Kernel::ReadableEvent> FindVsyncEvent(u64 display_id);
|
Kernel::SharedPtr<Kernel::ReadableEvent> FindVsyncEvent(u64 display_id) const;
|
||||||
|
|
||||||
/// Obtains a buffer queue identified by the ID.
|
/// Obtains a buffer queue identified by the ID.
|
||||||
std::shared_ptr<BufferQueue> FindBufferQueue(u32 id) const;
|
std::shared_ptr<BufferQueue> FindBufferQueue(u32 id) const;
|
||||||
|
|
Loading…
Reference in a new issue