Skip to content

Conversation

@ShahzaibIbrahim
Copy link
Contributor

Every image handle holds more than just the handle value and can be required by the caller to determine the characteristics of an Image.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 20, 2025

Test Results

  115 files  ±0    115 suites  ±0   10m 47s ⏱️ -5s
4 560 tests ±0  4 544 ✅ ±0  16 💤 ±0  0 ❌ ±0 
  311 runs  ±0    308 ✅ ±0   3 💤 ±0  0 ❌ ±0 

Results for commit ed37bf8. ± Comparison against base commit 7831aa5.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShahzaibIbrahim #2615 contains a bunch of replacements of calls to win32_getHandle() with calls o getHandle(), which are also only refactorings and should be done in a separate PR than that one (so can potentially be included in this one).

every image handle holds more than just the handle value and can be
required by the caller to determine the characteristics of an Image.
@HeikoKlare HeikoKlare force-pushed the master-442-new-return-handle branch from 9e42b1d to ed37bf8 Compare October 20, 2025 15:29
Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change seems fine. I have only updated it with an encapsulation of ImageHandle#handle to avoid that it gets overridden accidentally from anywhere outside the Image class.

@ShahzaibIbrahim As a follow up in #2615, we can get rid of the Image parameters in some GC methods, as they were only passed for the transparentPixel/transparentColor fields, which are then properly part of the ImageHandle.

As another follow-up cleanup, I will take care of removing the now rather obsolete HandleAtSizeConsumer.

@HeikoKlare HeikoKlare merged commit 2d43ce9 into eclipse-platform:master Oct 20, 2025
17 checks passed
@HeikoKlare HeikoKlare deleted the master-442-new-return-handle branch October 20, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gif images sometimes have black backgrounds

2 participants