Commit 361644c
committed
[Win32] Avoid unnecessary handle creation for image of ImageGcDrawer
With an Image based on an ImageGcDrawer, a call to #getImageData() will
always create a handle for the requested zoom. For all other kinds of
images, this will at most create a temporary handle and only cache the
image data to avoid unnecessary handles for zooms you may never need.
This change adapts the ImageGcDrawerWrapper implementation to not create
a handle when requesting image data for a zoom for which no handle
exists yet.1 parent f7fb840 commit 361644c
File tree
1 file changed
+8
-5
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
1 file changed
+8
-5
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
2792 | | - | |
| 2792 | + | |
2793 | 2793 | | |
2794 | 2794 | | |
2795 | | - | |
2796 | | - | |
| 2795 | + | |
2797 | 2796 | | |
2798 | 2797 | | |
2799 | 2798 | | |
| |||
2813 | 2812 | | |
2814 | 2813 | | |
2815 | 2814 | | |
2816 | | - | |
2817 | | - | |
| 2815 | + | |
2818 | 2816 | | |
2819 | 2817 | | |
2820 | 2818 | | |
2821 | 2819 | | |
2822 | 2820 | | |
2823 | 2821 | | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
2824 | 2827 | | |
2825 | 2828 | | |
2826 | 2829 | | |
| |||
0 commit comments