mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 03:49:19 +01:00
Remove CancellationToken from GetFromRaw(Sync)
This commit is contained in:
parent
80875247b6
commit
3bf907002f
2 changed files with 3 additions and 6 deletions
|
|
@ -265,8 +265,7 @@ internal sealed class TextureManager : IServiceType, IDisposable, ITextureProvid
|
|||
/// <inheritdoc/>
|
||||
public IDalamudTextureWrap GetFromRaw(
|
||||
RawImageSpecification specs,
|
||||
ReadOnlySpan<byte> bytes,
|
||||
CancellationToken cancellationToken = default) =>
|
||||
ReadOnlySpan<byte> bytes) =>
|
||||
this.interfaceManager.LoadImageFromDxgiFormat(
|
||||
bytes,
|
||||
specs.Pitch,
|
||||
|
|
@ -281,7 +280,7 @@ internal sealed class TextureManager : IServiceType, IDisposable, ITextureProvid
|
|||
CancellationToken cancellationToken = default) =>
|
||||
this.textureLoadThrottler.CreateLoader(
|
||||
new TextureLoadThrottler.ReadOnlyThrottleBasisProvider(),
|
||||
ct => Task.FromResult(this.GetFromRaw(specs, bytes.Span, ct)),
|
||||
ct => Task.FromResult(this.GetFromRaw(specs, bytes.Span)),
|
||||
cancellationToken);
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue