Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2018-04-13 19:03:08 +0000
committerEric Williams2018-04-16 14:34:55 +0000
commit28b870c25e2d6c47b6d9c9bf84183034f8c2535d (patch)
treec2be68711933d133499cc77cf74cebef1e5a5610
parent9c7ced3817fb309a5c8ecd1157295f1d1abb102e (diff)
downloadeclipse.platform.swt-28b870c25e2d6c47b6d9c9bf84183034f8c2535d.tar.gz
eclipse.platform.swt-28b870c25e2d6c47b6d9c9bf84183034f8c2535d.tar.xz
eclipse.platform.swt-28b870c25e2d6c47b6d9c9bf84183034f8c2535d.zip
Bug 306530: ImageLoader Javadoc should warn about performance impact
Update Javadoc to warn about performance issues in ImageLoader. Change-Id: Ic00f21723ce69e587100eae448efb35afd1031d6 Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoader.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoader.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoader.java
index dc5696984a..814cbd33b9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoader.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoader.java
@@ -37,7 +37,13 @@ import org.eclipse.swt.internal.image.*;
* <li>load/save animated GIF images</li>
* <li>load interlaced GIF/PNG images</li>
* <li>load progressive JPEG images</li>
- * </ul>
+ * </ul></p>
+ *
+ * <p>
+ * NOTE: <code>ImageLoader</code> is implemented in Java, which has certain performance
+ * implications. Performance and memory sensitive applications may benefit from using
+ * one of the constructors provided by <code>Image</code>, as these are implemented
+ * natively.</p>
*
* @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ImageAnalyzer</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

Back to the top