1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibGfx+LibPDF: Make sample() functions take ReadonlySpan<>

...instead of Vector<>.

No behavior (or performance) change.
This commit is contained in:
Nico Weber 2024-02-02 21:51:14 -05:00 committed by Andreas Kling
parent a352099b05
commit 9fc47345ce
2 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@ public:
private:
SampledFunction(NonnullRefPtr<StreamObject>);
float sample(Vector<int> const& coordinates, size_t r) const
float sample(ReadonlySpan<int> const& coordinates, size_t r) const
{
// "For a function with multidimensional input (more than one input variable),
// the sample values in the first dimension vary fastest,