summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-02-05 15:57:26 -0500
committerGravatar Lioncash2019-02-05 15:57:29 -0500
commit7320c667dfa8993f4ebec8d6adfbf954d0591784 (patch)
treeca42e75c731ea305ecc47ab2db1ea5d12fcc4184 /src
parentservice/nvflinger: Rename GetVsyncEvent() to FindVsyncEvent() (diff)
downloadyuzu-7320c667dfa8993f4ebec8d6adfbf954d0591784.tar.gz
yuzu-7320c667dfa8993f4ebec8d6adfbf954d0591784.tar.xz
yuzu-7320c667dfa8993f4ebec8d6adfbf954d0591784.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp2
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index e15080b3b..ce3f2d8c1 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -78,7 +78,7 @@ u32 NVFlinger::FindBufferQueueId(u64 display_id, u64 layer_id) const {
78 return layer.buffer_queue->GetId(); 78 return layer.buffer_queue->GetId();
79} 79}
80 80
81Kernel::SharedPtr<Kernel::ReadableEvent> NVFlinger::FindVsyncEvent(u64 display_id) { 81Kernel::SharedPtr<Kernel::ReadableEvent> NVFlinger::FindVsyncEvent(u64 display_id) const {
82 return FindDisplay(display_id).vsync_event.readable; 82 return FindDisplay(display_id).vsync_event.readable;
83} 83}
84 84
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h
index 984be68a7..61db2c23b 100644
--- a/src/core/hle/service/nvflinger/nvflinger.h
+++ b/src/core/hle/service/nvflinger/nvflinger.h
@@ -67,7 +67,7 @@ public:
67 u32 FindBufferQueueId(u64 display_id, u64 layer_id) const; 67 u32 FindBufferQueueId(u64 display_id, u64 layer_id) const;
68 68
69 /// Gets the vsync event for the specified display. 69 /// Gets the vsync event for the specified display.
70 Kernel::SharedPtr<Kernel::ReadableEvent> FindVsyncEvent(u64 display_id); 70 Kernel::SharedPtr<Kernel::ReadableEvent> FindVsyncEvent(u64 display_id) const;
71 71
72 /// Obtains a buffer queue identified by the ID. 72 /// Obtains a buffer queue identified by the ID.
73 std::shared_ptr<BufferQueue> FindBufferQueue(u32 id) const; 73 std::shared_ptr<BufferQueue> FindBufferQueue(u32 id) const;