RFR: 8282526: Default icon is not painted properly [v4]

Sergey Bylokhov serb at openjdk.java.net
Thu Jun 2 21:53:32 UTC 2022


On Thu, 2 Jun 2022 18:12:26 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>>> Does it mean that we will extract all images except on the sides twice? for 16x16 we will extract 16x16 and 32x32 on the next iteration for 32x32 we will extract 32x32 and 64x64?
>> 
>> No, on the next iteration we will extract 16x16 and 64x64. So on each iteration we are going to extract additionally 16x16 icon and if size is 24 or more than we will ignore it. Since all the icons requested are cached that will not cause any performance degradation.
>
>> Can we try to do that via different API: https://devblogs.microsoft.com/oldnewthing/20140501-00/?p=1103 probably it will work better?
> 
> No, during initial implementation i tried it and it worked even worse and less stable.

But can we use it as a backup if the system does not return the expected size on the initial/current call?

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

PR: https://git.openjdk.java.net/jdk/pull/7805



More information about the client-libs-dev mailing list