mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-03-06 15:07:59 +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:
@@ -78,7 +78,7 @@ u32 NVFlinger::FindBufferQueueId(u64 display_id, u64 layer_id) const {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user