< prev index next >

modules/graphics/src/main/java/javafx/scene/effect/ImageInput.java

Print this page

        

@@ -240,11 +240,11 @@
     @Override
     void update() {
         com.sun.scenario.effect.Identity peer =
                 (com.sun.scenario.effect.Identity) getPeer();
         Image localSource = getSource();
-        if (localSource != null && localSource.impl_getPlatformImage() != null) {
+        if (localSource != null && Toolkit.getImageAccessor().getPlatformImage(localSource) != null) {
             peer.setSource(Toolkit.getToolkit().toFilterable(localSource));
         } else {
             peer.setSource(null);
         }
         peer.setLocation(new com.sun.javafx.geom.Point2D((float)getX(), (float)getY()));

@@ -259,11 +259,11 @@
     BaseBounds getBounds(BaseBounds bounds,
                          BaseTransform tx,
                          Node node,
                          BoundsAccessor boundsAccessor) {
         Image localSource = getSource();
-        if (localSource != null && localSource.impl_getPlatformImage() != null) {
+        if (localSource != null && Toolkit.getImageAccessor().getPlatformImage(localSource) != null) {
             float localX = (float) getX();
             float localY = (float) getY();
             float localWidth = (float) localSource.getWidth();
             float localHeight = (float) localSource.getHeight();
             BaseBounds r = new RectBounds(
< prev index next >