aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvflinger/buffer_queue.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-09 02:55:59 -0400
committerLioncash <mathew1800@gmail.com>2018-08-09 03:08:14 -0400
commitb46a5c42ff93cdbfe4fa00fdb44e97ed7313ac4e (patch)
treeecbccc2f0366b39a607644293e8ef813abbe0be3 /src/core/hle/service/nvflinger/buffer_queue.h
parentff5024ee2aaa5637e63e3f5fa92be85d227db4e2 (diff)
buffer_queue: Make reference parameter of SetPreallocatedBuffer const
This is simply copied by value, so there's no need to make it a modifiable reference. While we're at it, make the names of the parameters match its definition.
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_queue.h')
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue.h b/src/core/hle/service/nvflinger/buffer_queue.h
index 004170538..f86e1056c 100644
--- a/src/core/hle/service/nvflinger/buffer_queue.h
+++ b/src/core/hle/service/nvflinger/buffer_queue.h
@@ -72,7 +72,7 @@ public:
MathUtil::Rectangle<int> crop_rect;
};
- void SetPreallocatedBuffer(u32 slot, IGBPBuffer& buffer);
+ void SetPreallocatedBuffer(u32 slot, const IGBPBuffer& igbp_buffer);
boost::optional<u32> DequeueBuffer(u32 width, u32 height);
const IGBPBuffer& RequestBuffer(u32 slot) const;
void QueueBuffer(u32 slot, BufferTransformFlags transform,