JDK-8311042 : ClearRect: Separate method for clearing rect
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-06-28
  • Updated: 2024-07-06
  • Resolved: 2023-06-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalFixed
Description
Currently we reuse MetalContext.drawIndexedQuads() method to draw the clearRect.
The MetalContext.drawIndexedQuads() gets unnecessary if else check which does not look good on eye.

The current code of MetalContext.drawIndexedQuads() adds few un-required commands to MTLCommandBuffer.
Those commands can be reduced: that does not result in any huge performance gain.
Comments
Changeset: fb6b09ac Author: Ambarish Rapte <arapte@openjdk.org> Date: 2023-06-28 21:49:07 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/fb6b09acff012aefa06e743283803b86f446f820
28-06-2023