Run the test given below on prism -
---------------
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
import javafx.stage.*;
import javafx.scene.*;
var gr:Group = Group {
content: [
Rectangle {
x: 0 y: 0 width: 180 height: 100
fill: LinearGradient {
startX: 0.0 startY: 0.0 endX: 0.25 endY: 0.25
cycleMethod: CycleMethod.REFLECT
stops: [
Stop { offset: 0.0 color: Color.RED },
Stop { offset: 1.0 color: Color.YELLOW }
]
}
},
Text {
effect: Blend {
mode: BlendMode.SRC_IN
topInput: Flood {
paint: Color.BLUE
x: 10 y: 10
width: 160 height: 80
}
}
x: 25 y: 65
content: "SrcOut"
fill: Color.BLUE
font: Font.font(null, FontWeight.BOLD, FontPosture.ITALIC, 36);
}
]
}
Stage {
scene: Scene {
content: gr
}
}
---------------------
You will get the following exception on prism -
Error: Prism peer not found for: Flood due to error: com.sun.scenario.effect.impl.prism.ps.PPSFloodPeer
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javafx.runtime.provider.GUIRuntimeProvider.run(GUIRuntimeProvider.java:68)
at com.sun.javafx.runtime.Entry.start(Entry.java:84)
at com.sun.javafx.runtime.Main.main(Main.java:80)
Caused by: java.lang.RuntimeException: Could not create peer Flood for renderer com.sun.scenario.effect.impl.prism.ps.PPSRenderer@142bece
at com.sun.scenario.effect.impl.Renderer.getPeerInstance(Renderer.java:256)
at com.sun.scenario.effect.CoreEffect.getPeer(CoreEffect.java:64)
at com.sun.scenario.effect.CoreEffect.getPeer(CoreEffect.java:90)
at com.sun.scenario.effect.CoreEffect.filterImageDatas(CoreEffect.java:101)
at com.sun.scenario.effect.Flood.filterImageDatas(Flood.java:38)
at com.sun.scenario.effect.FilterEffect.filter(FilterEffect.java:100)
at com.sun.scenario.effect.FilterEffect.filter(FilterEffect.java:92)
at com.sun.scenario.effect.impl.prism.PrEffectHelper.render(PrEffectHelper.java:97)
at com.sun.javafx.sg.prism.NGNode$EffectFilter.render(NGNode.java:690)
at com.sun.javafx.sg.prism.NGNode.renderEffect(NGNode.java:386)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:253)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:101)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:255)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:101)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:255)
at com.sun.javafx.tk.prism.PrismScene$1.run(PrismScene.java:230)
at com.sun.prism.tk.RunnableEvent.run(RunnableEvent.java:47)
at com.sun.prism.tk.PrismToolkitImpl.processRenderEvent(PrismToolkitImpl.java:157)
at com.sun.prism.tk.PrismToolkitImpl.processRenderTasks(PrismToolkitImpl.java:173)
at com.sun.prism.tk.PrismToolkitImpl.run(PrismToolkitImpl.java:109)
at com.sun.javafx.tk.prism.PrismToolkit.startup(PrismToolkit.fx:126)
I reproduced it on WinXP-x64 - jdk6u14(32) - JavaFX Soma Graphics Scrum build b142 - Nvidia GeForce GTS250.
Not reproducible on the swing pipeline.
---------------
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
import javafx.stage.*;
import javafx.scene.*;
var gr:Group = Group {
content: [
Rectangle {
x: 0 y: 0 width: 180 height: 100
fill: LinearGradient {
startX: 0.0 startY: 0.0 endX: 0.25 endY: 0.25
cycleMethod: CycleMethod.REFLECT
stops: [
Stop { offset: 0.0 color: Color.RED },
Stop { offset: 1.0 color: Color.YELLOW }
]
}
},
Text {
effect: Blend {
mode: BlendMode.SRC_IN
topInput: Flood {
paint: Color.BLUE
x: 10 y: 10
width: 160 height: 80
}
}
x: 25 y: 65
content: "SrcOut"
fill: Color.BLUE
font: Font.font(null, FontWeight.BOLD, FontPosture.ITALIC, 36);
}
]
}
Stage {
scene: Scene {
content: gr
}
}
---------------------
You will get the following exception on prism -
Error: Prism peer not found for: Flood due to error: com.sun.scenario.effect.impl.prism.ps.PPSFloodPeer
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javafx.runtime.provider.GUIRuntimeProvider.run(GUIRuntimeProvider.java:68)
at com.sun.javafx.runtime.Entry.start(Entry.java:84)
at com.sun.javafx.runtime.Main.main(Main.java:80)
Caused by: java.lang.RuntimeException: Could not create peer Flood for renderer com.sun.scenario.effect.impl.prism.ps.PPSRenderer@142bece
at com.sun.scenario.effect.impl.Renderer.getPeerInstance(Renderer.java:256)
at com.sun.scenario.effect.CoreEffect.getPeer(CoreEffect.java:64)
at com.sun.scenario.effect.CoreEffect.getPeer(CoreEffect.java:90)
at com.sun.scenario.effect.CoreEffect.filterImageDatas(CoreEffect.java:101)
at com.sun.scenario.effect.Flood.filterImageDatas(Flood.java:38)
at com.sun.scenario.effect.FilterEffect.filter(FilterEffect.java:100)
at com.sun.scenario.effect.FilterEffect.filter(FilterEffect.java:92)
at com.sun.scenario.effect.impl.prism.PrEffectHelper.render(PrEffectHelper.java:97)
at com.sun.javafx.sg.prism.NGNode$EffectFilter.render(NGNode.java:690)
at com.sun.javafx.sg.prism.NGNode.renderEffect(NGNode.java:386)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:253)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:101)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:255)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:101)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:255)
at com.sun.javafx.tk.prism.PrismScene$1.run(PrismScene.java:230)
at com.sun.prism.tk.RunnableEvent.run(RunnableEvent.java:47)
at com.sun.prism.tk.PrismToolkitImpl.processRenderEvent(PrismToolkitImpl.java:157)
at com.sun.prism.tk.PrismToolkitImpl.processRenderTasks(PrismToolkitImpl.java:173)
at com.sun.prism.tk.PrismToolkitImpl.run(PrismToolkitImpl.java:109)
at com.sun.javafx.tk.prism.PrismToolkit.startup(PrismToolkit.fx:126)
I reproduced it on WinXP-x64 - jdk6u14(32) - JavaFX Soma Graphics Scrum build b142 - Nvidia GeForce GTS250.
Not reproducible on the swing pipeline.