142 references to GetFrames
Microsoft.AspNetCore.Components (6)
Rendering\ComponentState.cs (3)
126
_nextRenderTree.
GetFrames
(),
127
CurrentRenderTree.
GetFrames
());
311
RenderTreeDiffBuilder.DisposeFrames(batchBuilder, ComponentId, CurrentRenderTree.
GetFrames
());
Rendering\RenderTreeUpdater.cs (2)
20
var frames = renderTreeBuilder.
GetFrames
();
86
framesArray = renderTreeBuilder.
GetFrames
().Array; // Refresh in case it mutated due to the expansion
RenderTree\Renderer.cs (1)
230
protected ArrayRange<RenderTreeFrame> GetCurrentRenderTreeFrames(int componentId) => GetRequiredComponentState(componentId).CurrentRenderTree.
GetFrames
();
Microsoft.AspNetCore.Components.Performance (2)
RenderTreeDiffBuilderBenchmark.cs (2)
82
var diff = RenderTreeDiffBuilder.ComputeDiff(renderer, builder, 0, modified.
GetFrames
(), original.
GetFrames
());
Microsoft.AspNetCore.Components.Tests (134)
ParameterViewTest.Assignment.cs (1)
762
var view = new ParameterView(ParameterViewLifetime.Unbound, builder.
GetFrames
().Array, ownerIndex: 0);
Rendering\RenderTreeBuilderTest.cs (82)
20
var frames = builder.
GetFrames
();
38
var frames = builder.
GetFrames
();
58
var frames = builder.
GetFrames
();
79
var frames = builder.
GetFrames
();
101
var frames = builder.
GetFrames
();
117
var frames = builder.
GetFrames
();
134
var frames = builder.
GetFrames
();
150
var frame = builder.
GetFrames
().AsEnumerable().Single();
166
var frames = builder.
GetFrames
();
185
var frames = builder.
GetFrames
();
215
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
248
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
269
var frames = builder.
GetFrames
().AsEnumerable().ToArray();
308
var frames = builder.
GetFrames
().AsEnumerable().ToArray();
342
var frames = builder.
GetFrames
().AsEnumerable().ToArray();
418
var frames = builder.
GetFrames
().AsEnumerable().ToArray();
617
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
645
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
673
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
701
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
724
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
792
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
813
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
881
Assert.Collection(builder.
GetFrames
().AsEnumerable(),
901
Assert.Empty(builder.
GetFrames
().AsEnumerable());
917
builder.
GetFrames
().AsEnumerable(),
935
builder.
GetFrames
().AsEnumerable(),
954
builder.
GetFrames
().AsEnumerable(),
974
builder.
GetFrames
().AsEnumerable(),
992
builder.
GetFrames
().AsEnumerable(),
1010
builder.
GetFrames
().AsEnumerable(),
1029
builder.
GetFrames
().AsEnumerable(),
1049
builder.
GetFrames
().AsEnumerable(),
1069
builder.
GetFrames
().AsEnumerable(),
1087
builder.
GetFrames
().AsEnumerable(),
1106
builder.
GetFrames
().AsEnumerable(),
1124
builder.
GetFrames
().AsEnumerable(),
1148
builder.
GetFrames
().AsEnumerable(),
1167
builder.
GetFrames
().AsEnumerable(),
1186
builder.
GetFrames
().AsEnumerable(),
1205
builder.
GetFrames
().AsEnumerable(),
1224
builder.
GetFrames
().AsEnumerable(),
1244
builder.
GetFrames
().AsEnumerable(),
1264
builder.
GetFrames
().AsEnumerable(),
1283
builder.
GetFrames
().AsEnumerable(),
1302
builder.
GetFrames
().AsEnumerable(),
1321
builder.
GetFrames
().AsEnumerable(),
1341
builder.
GetFrames
().AsEnumerable(),
1361
builder.
GetFrames
().AsEnumerable(),
1379
builder.
GetFrames
().AsEnumerable(),
1397
builder.
GetFrames
().AsEnumerable(),
1416
builder.
GetFrames
().AsEnumerable(),
1434
builder.
GetFrames
().AsEnumerable(),
1452
builder.
GetFrames
().AsEnumerable(),
1472
builder.
GetFrames
().AsEnumerable(),
1492
builder.
GetFrames
().AsEnumerable(),
1512
builder.
GetFrames
().AsEnumerable(),
1532
builder.
GetFrames
().AsEnumerable(),
1551
builder.
GetFrames
().AsEnumerable(),
1570
builder.
GetFrames
().AsEnumerable(),
1589
builder.
GetFrames
().AsEnumerable(),
1609
builder.
GetFrames
().AsEnumerable(),
1628
builder.
GetFrames
().AsEnumerable(),
1647
builder.
GetFrames
().AsEnumerable(),
1666
builder.
GetFrames
().AsEnumerable(),
1684
builder.
GetFrames
().AsEnumerable(),
1704
builder.
GetFrames
().AsEnumerable(),
1730
builder.
GetFrames
().AsEnumerable(),
1783
builder.
GetFrames
().AsEnumerable(),
1804
builder.
GetFrames
().AsEnumerable(),
1823
var frames = builder.
GetFrames
().AsEnumerable();
1850
var frames = builder.
GetFrames
().AsEnumerable();
1875
var frames = builder.
GetFrames
().AsEnumerable();
1899
var frames = builder.
GetFrames
().AsEnumerable();
1922
var frames = builder.
GetFrames
().AsEnumerable();
1946
var frames = builder.
GetFrames
().AsEnumerable();
1973
var frames = builder.
GetFrames
().AsEnumerable();
2011
var frames = builder.
GetFrames
().AsEnumerable();
2095
builder.
GetFrames
().AsEnumerable(),
2118
builder.
GetFrames
().AsEnumerable(),
2157
builder.
GetFrames
().AsEnumerable(),
2197
builder.
GetFrames
().AsEnumerable(),
RenderTreeDiffBuilderTest.cs (42)
819
var diff = RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, 0, oldTree.
GetFrames
(), newTree.
GetFrames
());
925
var removedEventHandlerFrame = oldTree.
GetFrames
().Array[2];
1597
var componentInstance = newTree.
GetFrames
().AsEnumerable().First().Component as FakeComponent;
1630
RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, 0, renderTreeBuilder.
GetFrames
(), oldTree.
GetFrames
());
1631
var originalFakeComponentInstance = oldTree.
GetFrames
().Array[2].Component;
1632
var originalFakeComponent2Instance = oldTree.
GetFrames
().Array[3].Component;
1636
var newFrame1 = newTree.
GetFrames
().Array[2];
1637
var newFrame2 = newTree.
GetFrames
().Array[3];
1661
var oldAttributeFrame = oldTree.
GetFrames
().Array[1];
1662
var newAttributeFrame = newTree.
GetFrames
().Array[1];
1688
var oldAttributeFrame = oldTree.
GetFrames
().Array[1];
1689
var newAttributeFrame = newTree.
GetFrames
().Array[2];
1716
RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, 0, renderTree.
GetFrames
(), oldTree.
GetFrames
());
1717
var originalComponentInstance = (FakeComponent)oldTree.
GetFrames
().Array[0].Component;
1721
var newComponentInstance = (FakeComponent)oldTree.
GetFrames
().Array[0].Component;
1771
RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, 0, renderTreeBuilder.
GetFrames
(), oldTree.
GetFrames
());
1772
var originalComponentInstance = (CaptureSetParametersComponent)oldTree.
GetFrames
().Array[0].Component;
1777
var newComponentInstance = (CaptureSetParametersComponent)oldTree.
GetFrames
().Array[0].Component;
1801
RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, 0, renderTreeBuilder.
GetFrames
(), oldTree.
GetFrames
());
1802
var componentInstance = (CaptureSetParametersComponent)oldTree.
GetFrames
().Array[0].Component;
1827
RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, 0, renderTree.
GetFrames
(), oldTree.
GetFrames
());
1833
RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, 0, oldTree.
GetFrames
(), newTree.
GetFrames
());
2334
for (var i = 0; oldTree.
GetFrames
().Count < oldTree.
GetFrames
().Array.Length; i++)
2339
for (var i = 0; newTree.
GetFrames
().Count < newTree.
GetFrames
().Array.Length; i++)
2367
for (var i = 0; oldTree.
GetFrames
().Count < oldTree.
GetFrames
().Array.Length; i++)
2372
for (var i = 0; newTree.
GetFrames
().Count < newTree.
GetFrames
().Array.Length; i++)
2418
var emptyFrames = renderTreeBuilder.
GetFrames
();
2419
var oldFrames = from.
GetFrames
();
2428
var diff = RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, componentId, from.
GetFrames
(), to.
GetFrames
());
2437
=> builder.
GetFrames
().AsEnumerable()
RenderTreeUpdaterTest.cs (9)
24
var frames = builder.
GetFrames
();
52
var frames = builder.
GetFrames
();
84
var frames = builder.
GetFrames
();
114
var frames = builder.
GetFrames
();
119
frames = builder.
GetFrames
();
139
var frames = builder.
GetFrames
();
144
frames = builder.
GetFrames
();
169
var frames = builder.
GetFrames
();
174
frames = builder.
GetFrames
();