File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- 3d73e3885907ae3d48b46fba891073abdb59e76d
1
+ 0c6b52ec22023fae247baaa98f6ca1615ef523c8
Original file line number Diff line number Diff line change @@ -278,6 +278,14 @@ impl FrameBuilder {
278
278
& mut retained_tiles,
279
279
) ;
280
280
281
+ // If we had any retained tiles from the last scene that were not picked
282
+ // up by the new frame, then just discard them eagerly.
283
+ // TODO(gw): Maybe it's worth keeping them around for a bit longer in
284
+ // some cases?
285
+ for ( _, handle) in retained_tiles. drain ( ) {
286
+ resource_cache. texture_cache . mark_unused ( & handle) ;
287
+ }
288
+
281
289
let mut frame_state = FrameBuildingState {
282
290
render_tasks,
283
291
profile_counters,
Original file line number Diff line number Diff line change @@ -857,14 +857,6 @@ impl TileCache {
857
857
}
858
858
}
859
859
860
- // If we had any retained tiles from the last scene that were not picked
861
- // up by the new frame, then just discard them eagerly.
862
- // TODO(gw): Maybe it's worth keeping them around for a bit longer in
863
- // some cases?
864
- for ( _, handle) in retained_tiles. drain ( ) {
865
- resource_cache. texture_cache . mark_unused ( & handle) ;
866
- }
867
-
868
860
self . dirty_region = if dirty_rect. is_empty ( ) {
869
861
None
870
862
} else {
You can’t perform that action at this time.
0 commit comments