Descriptioncc: Stop converting Rect to QuadF to map to an enclosed rect.
Occlusion tracker converts Rects to QuadF, then does MapClippedQuad,
then BoundingBox(), then ToEnclosedRect(). Instead, add methods to
MathUtil that mirror the {Map,Project}EnclosingClippedRect
methods but for an enclosed rect instead, that work only when the
transform preserves 2d axis alignment.
In the common case, this avoids converting the integers to floats just
to convert back to ints using the costly safe conversion methods.
R=enne
Committed: https://crrev.com/c8357ff51ba8458cc04848fa4ec4452d2660b160
Cr-Commit-Position: refs/heads/master@{#291785}
Patch Set 1 : enclosed-rect: . #
Total comments: 4
Patch Set 2 : enclosed: . #
Total comments: 1
Patch Set 3 : enclosed: . #
Messages
Total messages: 16 (0 generated)
|