Skip to content

Conversation

@akoch-yatta
Copy link
Contributor

This PR reduces the calls to Image#win32_getHandle(int) in GC. When drawing an image with a GC multiple draw... methods are calling each other for that operation. All those methods are refetching the handle via Image#win32_getHandle(int) with getZoom(). To support use cases where a method uses a different zoom to get a handle to draw the handle is now fetched in the top most methods and are passed to the other methods directly.

This PR does not change any behavior of the drawing of images.

@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2025

Test Results

   545 files  ±0     545 suites  ±0   32m 20s ⏱️ + 2m 10s
 4 377 tests ±0   4 359 ✅ ±0   18 💤 ±0  0 ❌ ±0 
16 647 runs  ±0  16 506 ✅ ±0  141 💤 ±0  0 ❌ ±0 

Results for commit 72c449d. ± Comparison against base commit 1d59663.

♻️ This comment has been updated with latest results.

@akoch-yatta akoch-yatta force-pushed the win32-adapt-gc-image-handle-fetching branch from a2b61f9 to ccf845c Compare May 8, 2025 07:10
This commit reduces the calls to Image#win32_getHandle(int) in GC. When
drawing an image with a GC multiple draw... methods are calling each other
for that operation. All those methods are refetching the handle via
Image#win32_getHandle(int) with getZoom(). To support use cases where a
method uses a different zoom to get a handle to draw the handle is now
fetched in the top most methods and are passed to the other methods
directly.
@HeikoKlare HeikoKlare force-pushed the win32-adapt-gc-image-handle-fetching branch from ccf845c to 72c449d Compare May 8, 2025 13:02
@HeikoKlare HeikoKlare merged commit e1b6447 into eclipse-platform:master May 8, 2025
17 checks passed
@HeikoKlare HeikoKlare deleted the win32-adapt-gc-image-handle-fetching branch May 8, 2025 15:15
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.

2 participants