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

[Canvas] Canvas needs a fast rectangular clip capabiity

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 8u40
    • 7u6
    • javafx
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: