Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8144938

Handle properly coordinate overflow in Marlin Renderer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • None
    • 2d
    • b114

        Marlin (like Pisces) does not check input pixel coordinates (as float) for possible overflow:
        - NaN, +/- Infinity
        - abs(x|y coord) > UPPER_BND

        Besides, it should also check that subpixel coordinates remain in the valid range too (even after applying the affine transform).

        It can lead to possibly generate artefacts.
        Moreover, it could also provide performance benefits:
        - FloatMath.ceil / floor (could skip NaN / Infinity checks)
        - avoid several overflow checks in the Marlin rendering pipeline

        See sun.dc.DuctusRenderingEngine#feedConsumer(...) for the Ductus implementation of such filter

              lbourges Laurent Bourgès
              lbourges Laurent Bourgès
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: