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

[Canvas] Canvas needs a fast rectangular clip capabiity

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
      None

      Description

      Canvas has a general clip() method, but it is currently implemented in the most general way that assumes that the clip is an arbitrary shape with soft edges. The performance would be much higher if we detected rectangular clips and implemented them using scissor clipping rather than raster operations.

      It would be even more useful to programmers to implement a front end API on GraphicsContext to let them specify a rectangular clip up front rather than having to construct a path.

        Attachments

          Activity

            People

            Assignee:
            flar Jim Graham
            Reporter:
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: