service/nvflinger: Make FindBufferQueueId() a const member function

This member function doesn't actually modify instance state, so it can
be const-qualified.
This commit is contained in:
Lioncash
2019-01-30 11:14:05 -05:00
parent 1d11def9c4
commit ba14fb42e4
2 changed files with 26 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public:
u64 CreateLayer(u64 display_id);
/// Finds the buffer queue ID of the specified layer in the specified display.
u32 FindBufferQueueId(u64 display_id, u64 layer_id);
u32 FindBufferQueueId(u64 display_id, u64 layer_id) const;
/// Gets the vsync event for the specified display.
Kernel::SharedPtr<Kernel::ReadableEvent> GetVsyncEvent(u64 display_id);
@ -80,9 +80,15 @@ private:
/// Finds the display identified by the specified ID.
Display& FindDisplay(u64 display_id);
/// Finds the display identified by the specified ID.
const Display& FindDisplay(u64 display_id) const;
/// Finds the layer identified by the specified ID in the desired display.
Layer& FindLayer(u64 display_id, u64 layer_id);
/// Finds the layer identified by the specified ID in the desired display.
const Layer& FindLayer(u64 display_id, u64 layer_id) const;
std::shared_ptr<Nvidia::Module> nvdrv;
std::array<Display, 5> displays{{