Integrated: 8299425: "LCMSImageLayout.isIntPacked" flag can be deleted

Sergey Bylokhov serb at openjdk.org
Fri Jan 6 20:19:57 UTC 2023


On Sat, 31 Dec 2022 03:22:20 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> After this change we will set correct pixel formatter when we initially create it, instead of updating the pixel formatter in native based on additional "isIntPacked" flag.
> 
> FYI: The fix for https://bugs.openjdk.org/browse/JDK-7124245 added the "isIntPacked" flag to mark the non-byte pixels layouts(like TYPE_INT_RGB).
> * This flag is passed around even if it is not used by the pixel layout
> * It may cause unnecessary creation of new transform if one type is "rgb && isIntPacked=true" and another one is "bgr && isIntPacked=false", but the actual data is the same
> see: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/2cf07dbdee64

This pull request has now been integrated.

Changeset: 4a95c74b
Author:    Sergey Bylokhov <serb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4a95c74b7628ad297d2a6bff2d47c6a9ddf876e3
Stats:     48 lines in 4 files changed: 4 ins; 28 del; 16 mod

8299425: "LCMSImageLayout.isIntPacked" flag can be deleted

Reviewed-by: prr

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

PR: https://git.openjdk.org/jdk/pull/11806



More information about the client-libs-dev mailing list