-
Notifications
You must be signed in to change notification settings - Fork 139
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
Refactor Image for storing ImageMetadata #1496
Conversation
Test Results 483 files ±0 483 suites ±0 9m 33s ⏱️ +40s For more details on these failures, see this check. Results for commit 7f5b4d4. ± Comparison against base commit a6b8fe7. ♻️ This comment has been updated with latest results. |
68e8193
to
597c46d
Compare
597c46d
to
9acf71a
Compare
3832a24
to
e353b1a
Compare
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
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
8067b98
to
6225eae
Compare
6225eae
to
8f0c350
Compare
Converted it back to Draft, this one should be merged in 4.35 M1 |
689b931
to
42db14c
Compare
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.
I have some comments regarding coding style and one missing return
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
Show resolved
Hide resolved
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
Show resolved
Hide resolved
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
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
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
ea52af4
to
5d4076a
Compare
5d4076a
to
83bd8d7
Compare
83bd8d7
to
6baebb4
Compare
This contribution encapsulates the metadata of the image in an innerclass ImageHandle which is used to create a hashmap of zoom level to imageHandle object inside an image object, making it straight forward to obtain any metadata information from an image for a zoom level. contributes to eclipse-platform#62 and eclipse-platform#127
6baebb4
to
7f5b4d4
Compare
The build is failing when trying to commit the newly generated SWT Binaries here:
And the tag definitely exists, it was created 1 hour ago --> https://github.com/eclipse-platform/eclipse.platform.swt/releases/tag/v4968r1. Merging. |
This PR contributes to the refactoring of
Image
class for win32.The goal is to store more than just the
handle
of the image for each zoom level. To do that, a new private class is created (it's calledImageHandle
) and an image contains one instance of this new class for each zoom level. The class contains the following fields:handle
height
width
contributes to #62 and #127