Webrender: [meta] Picture caching tidy ups

Created on 27 Nov 2018  路  1Comment  路  Source: servo/webrender

We can list here any refactoring / tidy ups we want to land once the picture caching code has landed.

soon

Most helpful comment

My rough list to date:

  • [ ] merge old tiles and new tiles into a hashmap
  • [ ] turn local_tile_size into TypedScale2D
  • [ ] avoid double clears
  • [ ] remove SmallVec<[SegmentInstanceData; 8]>
  • [ ] avoid SmallVec::from_vec(segments),
  • [ ] add an Epoch to the Index<T> under cfg(debug_assertions)
  • [ ] Option<&SegmentBuilder>
  • [ ] HashFloat
  • [ ] for things that destroy() overload drop to ensure they are correctly destroyed
  • [ ] simplify PictureCompositeKey (see #3426)

Note: these aren't necessary fixes, rather ideas to explore.

>All comments

My rough list to date:

  • [ ] merge old tiles and new tiles into a hashmap
  • [ ] turn local_tile_size into TypedScale2D
  • [ ] avoid double clears
  • [ ] remove SmallVec<[SegmentInstanceData; 8]>
  • [ ] avoid SmallVec::from_vec(segments),
  • [ ] add an Epoch to the Index<T> under cfg(debug_assertions)
  • [ ] Option<&SegmentBuilder>
  • [ ] HashFloat
  • [ ] for things that destroy() overload drop to ensure they are correctly destroyed
  • [ ] simplify PictureCompositeKey (see #3426)

Note: these aren't necessary fixes, rather ideas to explore.

Was this page helpful?
0 / 5 - 0 ratings