We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b23607 commit 8cb551eCopy full SHA for 8cb551e
1 file changed
src/Artemis.Core/RGB.NET/SKTexture.cs
@@ -1,5 +1,6 @@
1
using System;
2
using System.Collections.Generic;
3
+using System.Runtime.CompilerServices;
4
using System.Runtime.InteropServices;
5
using Artemis.Core.SkiaSharp;
6
using RGB.NET.Core;
@@ -107,10 +108,8 @@ internal void CopyPixelData()
107
108
}
109
110
/// <inheritdoc />
- protected override Color GetColor(in ReadOnlySpan<byte> pixel)
111
- {
112
- return new Color(pixel[2], pixel[1], pixel[0]);
113
- }
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
+ protected override Color GetColor(in ReadOnlySpan<byte> pixel) => new(pixel[2], pixel[1], pixel[0]);
114
115
116
public override Color this[in Rectangle rectangle] => Color.Transparent;
0 commit comments