Skip to content

Conversation

@akoch-yatta
Copy link
Contributor

This PR adapts all places, where operation where executed with OS handles created for a specific zoom that could use any zoom. Therefor now any existing handle is used or, if none exists yet, a temporary handle is created and destroyed afterwards.

@akoch-yatta akoch-yatta force-pushed the win32-image-utilize-temporary-handles branch 2 times, most recently from 57720db to 644926a Compare May 6, 2025 10:30
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

Test Results

   539 files  +   373     539 suites  +373   32m 27s ⏱️ + 23m 10s
 4 339 tests ±     0   4 323 ✅ +    43   15 💤  - 44  1 ❌ +1 
16 606 runs  +12 204  16 468 ✅ +12 125  137 💤 +78  1 ❌ +1 

For more details on these failures, see this check.

Results for commit b2c3a84. ± Comparison against base commit 13f7cc0.

This pull request removes 37 and adds 37 tests. Note that renamed tests count towards both.
AllWin32Tests org.eclipse.swt.graphics.ImageWin32Tests ‑ testImageDataForDifferentFractionalZoomsShouldBeDifferent
AllWin32Tests org.eclipse.swt.graphics.ImageWin32Tests ‑ testImageShouldHaveDimesionAsPerZoomLevel
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testByteArrayTransfer
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testFileTransfer
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testHtmlTransfer
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testImageTransfer_fromCopiedImage
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testImageTransfer_fromImage
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testImageTransfer_fromImageData
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testImageTransfer_fromImageDataFromImage
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testRtfTransfer
…
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicASCII_dollarSign
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicASCII_emptyString
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicASCII_letterA
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicASCII_letters
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicUTF16LE_null
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicUTF16_AsciiLetters
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicUTF16_Asciiletter
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicUTF16_LotsOfLetters
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicUTF16_letter
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_HeuristicUTF16_letters
…
This pull request removes 3 skipped tests and adds 2 skipped tests. Note that renamed tests count towards both.
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_multipleLetters
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_unorderedCtrlC
AllWin32Tests org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_unpairedKeyUp
AllGTKTests org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_Heuristic_specialSingleCases
org.eclipse.swt.tests.gtk.Test_GtkConverter ‑ test_Heuristic_specialSingleCases

♻️ This comment has been updated with latest results.

Copy link
Member

@fedejeanne fedejeanne left a comment

Choose a reason for hiding this comment

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

The code looks OK and I saw no regressions when running the Runtime Workspace Eclipse Application. I only have some minor comments regarding coding style.

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.

In general, the change looks fine. In particular the usage of deviceZoom for the temporary handle (if necessary) makes sense to me. I only have question regarding the implementation of the deprecated methods, most importantly the getImageDataAtCurrentZoom() one.

@akoch-yatta akoch-yatta force-pushed the win32-image-utilize-temporary-handles branch from 644926a to dd5a6a2 Compare May 6, 2025 13:22
This commit adapts all places, where operation where executed with
OS handles created for a specific zoom that could use any zoom. Therefor
now any existing handle is used or, if none exists yet, a temporary handle
is created and destroyed afterwards.
@HeikoKlare HeikoKlare force-pushed the win32-image-utilize-temporary-handles branch from dd5a6a2 to b2c3a84 Compare May 6, 2025 14:02
@HeikoKlare
Copy link
Contributor

Failing test is unrelated: #1843

@HeikoKlare HeikoKlare merged commit cb6e7a6 into eclipse-platform:master May 6, 2025
15 of 17 checks passed
@HeikoKlare HeikoKlare deleted the win32-image-utilize-temporary-handles branch May 6, 2025 14:43
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.

3 participants