Review request for 8169294:
Jim Graham
james.graham at oracle.com
Tue Nov 8 02:08:48 UTC 2016
On 11/7/2016 1:14 PM, Laurent Bourgès wrote:
>> The only difference in Path2D.java I noted is that the Java2D version has
>> an EXPAND_MIN which is 10, but you re-use INIT_SIZE, which is 20, here for
>> the same purpose.
>
> You're right; I think I didn't want to add an extra constant but if you
> prefer being more consistent, I can prepare another webrev.
In looking at it again, I don't think it matters since it would only
ever be triggered if they created a path that intentionally had fewer
than the default number of entries, so it makes more sense to always
grow by at least the INIT_SIZE rather than a smaller number.
I think I like the new policy better than the one in Java2D...
...jim
More information about the openjfx-dev
mailing list