Skip to content
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

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

amartya4256
Copy link
Contributor

@amartya4256 amartya4256 commented Sep 26, 2024

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 called ImageHandle) 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

Copy link
Contributor

github-actions bot commented Sep 26, 2024

Test Results

   483 files  ±0     483 suites  ±0   9m 33s ⏱️ +40s
 4 095 tests ±0   4 085 ✅ ±0   7 💤 ±0  3 ❌ ±0 
16 173 runs  ±0  16 080 ✅ ±0  90 💤 ±0  3 ❌ ±0 

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.

@fedejeanne
Copy link
Contributor

Converted it back to Draft, this one should be merged in 4.35 M1

@amartya4256 amartya4256 force-pushed the imageMetadata branch 2 times, most recently from 689b931 to 42db14c Compare November 12, 2024 13:53
Copy link
Contributor

@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.

I have some comments regarding coding style and one missing return

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
@fedejeanne
Copy link
Contributor

The build is failing when trying to commit the newly generated SWT Binaries here:

git tag v4968r1

12:12:40  fatal: tag 'v4968r1' already exists

And the tag definitely exists, it was created 1 hour ago --> https://github.com/eclipse-platform/eclipse.platform.swt/releases/tag/v4968r1.

Merging.

@fedejeanne fedejeanne merged commit b7d8173 into eclipse-platform:master Nov 27, 2024
6 of 10 checks passed
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.

Refactor Image for Multi-Zoom Support
3 participants