-
Notifications
You must be signed in to change notification settings - Fork 187
[win32] Utilize temporary image handles #2108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[win32] Utilize temporary image handles #2108
Conversation
57720db to
644926a
Compare
Test Results 539 files + 373 539 suites +373 32m 27s ⏱️ + 23m 10s 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.This pull request removes 3 skipped tests and adds 2 skipped tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
fedejeanne
left a comment
There was a problem hiding this 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.
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
Outdated
Show resolved
Hide resolved
HeikoKlare
left a comment
There was a problem hiding this 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.
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
Outdated
Show resolved
Hide resolved
644926a to
dd5a6a2
Compare
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.
dd5a6a2 to
b2c3a84
Compare
|
Failing test is unrelated: #1843 |
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.