DescriptionPerform BSP polygon splitting and orientation selection in a single step.
This eliminates redundant testing of vertices for orientation with
respect to the splitting polygon. Previously, up to 3 sets of tests
were made (once to determine whether the polygon was split, then once
during the split, and then finally to determine the orientation of the
split polygons.
Merging these steps in order to reuse calculated values also eliminates
the possibility that different calculations in testing and splitting
could be inconsistent.
BUG=606984
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/89c62c8f69d76471e866f21ee4f1ae5e0c5bca48
Committed: https://crrev.com/3e9082bfc63be6b304543ee499354fd71ea063ae
Cr-Original-Commit-Position: refs/heads/master@{#399459}
Cr-Commit-Position: refs/heads/master@{#403559}
Patch Set 1 #Patch Set 2 : Update test expectations #
Total comments: 12
Patch Set 3 : Add DCHECKS, remove unnecessary methods from DrawPolygon #Patch Set 4 : Re-add rebaselines #Patch Set 5 : Speculative change to try to fix Win7 cc_unittests regression #Patch Set 6 : rebase; update DCHECK #Patch Set 7 : make AngledSplit test approximate #Patch Set 8 : Make AngledSplit test sufficiently inexact; revert speculative change #
Messages
Total messages: 29 (11 generated)
|