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

Handle properly coordinate overflow in Marlin Renderer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      b114

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: