[OpenJDK 2D-Dev] RFC: 7019861 + workaround + minor optimization
Denis Lila
dlila at redhat.com
Thu Mar 10 14:38:35 UTC 2011
> [Resending due to bounces...]
>
> On 3/9/2011 5:56 AM, Denis Lila wrote:
> >> lines 1002& 1083 - can breaking points of a cubic generate quad
> >> segments and vice versa?
> >
> > No, the functions that generate the offset curves can only
> > return a line or a curve of the same degree as the curve
> > whose offset they're generating.
>
> Then why does the code to handle the opposing curve type exist in
> these
> functions?
>
> ...jim
Because everything was copied from somethingTo, which had to handle
both types of curves, and I applied constant propagation and dead
code elimination very mechanically for fear or breaking something.
Should I remove the cases that never execute?
Regards,
Denis.
More information about the 2d-dev
mailing list