Browse Source

Merge pull request #535 in DESIGN/design from release/10.0 to 10.0

* commit 'db347617a7d13467ae00c2b3855a5691f1086ded':
  无JIRA任务 不知道啥问题
master
richie 6 years ago
parent
commit
b9a88f25c0
  1. 16
      designer-realize/src/main/java/com/fr/start/fx/PrismImageLoader2.java

16
designer-realize/src/main/java/com/fr/start/fx/PrismImageLoader2.java

@ -10,7 +10,7 @@ import com.sun.javafx.iio.gif.GIFImageLoaderFactory;
import com.sun.javafx.tk.PlatformImage; import com.sun.javafx.tk.PlatformImage;
import com.sun.prism.Image; import com.sun.prism.Image;
import com.sun.prism.impl.PrismSettings; import com.sun.prism.impl.PrismSettings;
import sun.util.logging.PlatformLogger;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
@ -22,8 +22,6 @@ import java.io.InputStream;
*/ */
class PrismImageLoader2 implements com.sun.javafx.tk.ImageLoader { class PrismImageLoader2 implements com.sun.javafx.tk.ImageLoader {
private static PlatformLogger imageioLogger = null;
private Image[] images; private Image[] images;
private int[] delayTimes; private int[] delayTimes;
private int width; private int width;
@ -174,21 +172,11 @@ class PrismImageLoader2 implements com.sun.javafx.tk.ImageLoader {
return image; return image;
} }
/**
* Returns the PlatformLogger for logging imageio-related activities.
*/
private static synchronized PlatformLogger getImageioLogger() {
if (imageioLogger == null) {
imageioLogger = PlatformLogger.getLogger("imageio");
}
return imageioLogger;
}
private class PrismLoadListener implements ImageLoadListener { private class PrismLoadListener implements ImageLoadListener {
@Override @Override
public void imageLoadWarning(ImageLoader loader, String message) { public void imageLoadWarning(ImageLoader loader, String message) {
getImageioLogger().warning(message);
} }
@Override @Override

Loading…
Cancel
Save