On Sun, 6 Sep 2026 15:44:00 GMT, Michael Strauß <[email protected]> wrote:

>> John Hendrikx has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Use actual painted pixels to compute dirty rects
>
> modules/javafx.graphics/src/main/java/com/sun/prism/sw/SWDrawingContext.java 
> line 592:
> 
>> 590:     private Rectangle transformRect(double x1, double y1, double x2, 
>> double y2) {
>> 591:         double[] src = {x1, y1, x2, y1, x1, y2, x2, y2};
>> 592:         double[] dst = new double[8];
> 
> You could use scratch arrays stored in the class to prevent unnecessary 
> allocations here (maybe reuse `coords`).

Always avoid allocation in hot path...

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1969#discussion_r3944586002

Reply via email to