|
@@ -71,18 +71,18 @@ internal class CanvasUpdater
|
|
|
/// Don't call this outside ActionAccumulator
|
|
|
/// </summary>
|
|
|
public async Task<List<IRenderInfo>> UpdateGatheredChunks
|
|
|
- (AffectedAreasGatherer chunkGatherer, bool rerenderDelayed, IReadOnlyCollection<Guid> membersToRender)
|
|
|
+ (AffectedAreasGatherer chunkGatherer, bool rerenderDelayed)
|
|
|
{
|
|
|
- return await Task.Run(() => Render(chunkGatherer, rerenderDelayed, membersToRender)).ConfigureAwait(true);
|
|
|
+ return await Task.Run(() => Render(chunkGatherer, rerenderDelayed)).ConfigureAwait(true);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// Don't call this outside ActionAccumulator
|
|
|
/// </summary>
|
|
|
public List<IRenderInfo> UpdateGatheredChunksSync
|
|
|
- (AffectedAreasGatherer chunkGatherer, bool rerenderDelayed, IReadOnlyCollection<Guid> documentSelectedMembers)
|
|
|
+ (AffectedAreasGatherer chunkGatherer, bool rerenderDelayed)
|
|
|
{
|
|
|
- return Render(chunkGatherer, rerenderDelayed, documentSelectedMembers);
|
|
|
+ return Render(chunkGatherer, rerenderDelayed);
|
|
|
}
|
|
|
|
|
|
private Dictionary<ChunkResolution, HashSet<VecI>> FindChunksVisibleOnViewports(bool onDelayed, bool all)
|
|
@@ -160,8 +160,7 @@ internal class CanvasUpdater
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private List<IRenderInfo> Render(AffectedAreasGatherer chunkGatherer, bool rerenderDelayed,
|
|
|
- IReadOnlyCollection<Guid> membersToRender)
|
|
|
+ private List<IRenderInfo> Render(AffectedAreasGatherer chunkGatherer, bool rerenderDelayed)
|
|
|
{
|
|
|
Dictionary<ChunkResolution, HashSet<VecI>> chunksToRerender =
|
|
|
FindGlobalChunksToRerender(chunkGatherer, rerenderDelayed);
|
|
@@ -195,12 +194,12 @@ internal class CanvasUpdater
|
|
|
|
|
|
List<IRenderInfo> infos = new();
|
|
|
UpdateMainImage(chunksToRerender, updatingStoredChunks ? null : chunkGatherer.MainImageArea.GlobalArea.Value,
|
|
|
- infos, membersToRender);
|
|
|
+ infos);
|
|
|
return infos;
|
|
|
}
|
|
|
|
|
|
private void UpdateMainImage(Dictionary<ChunkResolution, HashSet<VecI>> chunksToRerender,
|
|
|
- RectI? globalClippingRectangle, List<IRenderInfo> infos, IReadOnlyCollection<Guid> membersToRender)
|
|
|
+ RectI? globalClippingRectangle, List<IRenderInfo> infos)
|
|
|
{
|
|
|
if (chunksToRerender.Count == 0)
|
|
|
return;
|
|
@@ -215,7 +214,7 @@ internal class CanvasUpdater
|
|
|
|
|
|
foreach (var chunkPos in chunks)
|
|
|
{
|
|
|
- RenderChunk(chunkPos, resolution, membersToRender);
|
|
|
+ RenderChunk(chunkPos, resolution);
|
|
|
RectI chunkRect = new(chunkPos * chunkSize, new(chunkSize, chunkSize));
|
|
|
if (globalScaledClippingRectangle is RectI rect)
|
|
|
chunkRect = chunkRect.Intersect(rect);
|
|
@@ -328,8 +327,8 @@ internal class CanvasUpdater
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void RenderChunk(VecI chunkPos, ChunkResolution resolution, IReadOnlyCollection<Guid> membersToRender)
|
|
|
+ private void RenderChunk(VecI chunkPos, ChunkResolution resolution)
|
|
|
{
|
|
|
- doc.Renderer.RenderChunk(chunkPos, resolution, doc.AnimationHandler.ActiveFrameTime, membersToRender);
|
|
|
+ doc.Renderer.RenderChunk(chunkPos, resolution, doc.AnimationHandler.ActiveFrameTime);
|
|
|
}
|
|
|
}
|