Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Simplify how local rects are accumulated for 3d contexts. #2975
Pictures in a 3d rendering context are re-parented during
Previously, we determined the spatial node index based on
Now, we determine the correct spatial node index during
This greatly simplifies the process of accumulating a
This simplifies some upcoming work to rasterize pictures
Still has a few jobs to finish, but looks good so far.
looks much cleaner!
&frame_context, &mut frame_state, &mut local_rect_builder,
neither the calling body or the
restore_context function care about
LocalRectBuilder. It would be simpler to move it's creation and destruction to inside
prepare_prim_runs and just return the resulting local rect from it.