-
Bug
-
Resolution: Fixed
-
P3
-
fx2.0
Render tree is accessed and modified during Text bounds calculation and other TextHelper operations. These operations can be invoked outside of pulses and so the render tree modifications in them are problematic for the future concurrent rendering.
Here is example of a problematic TextHelper method:
@Override public BaseBounds computeBounds(BaseBounds bounds, BaseTransform tx) {
Scene.impl_setAllowPGAccess(true);
NGText ng = (NGText) text.impl_getPGNode();
text.impl_syncPGNodeDirect();
Scene.impl_setAllowPGAccess(false);
return ng.computeContentBounds(bounds, tx);
}
One possible solution was prototyped here:
http://javame-linux.czech.sun.com/r/1085/
Diff:
http://javame-linux.czech.sun.com/r/1085/diff/1-3/
Here is example of a problematic TextHelper method:
@Override public BaseBounds computeBounds(BaseBounds bounds, BaseTransform tx) {
Scene.impl_setAllowPGAccess(true);
NGText ng = (NGText) text.impl_getPGNode();
text.impl_syncPGNodeDirect();
Scene.impl_setAllowPGAccess(false);
return ng.computeContentBounds(bounds, tx);
}
One possible solution was prototyped here:
http://javame-linux.czech.sun.com/r/1085/
Diff:
http://javame-linux.czech.sun.com/r/1085/diff/1-3/
- blocks
-
JDK-8092454 Ensure that references to PGNode from FX scene graph are only called by the synchronizer
- Resolved
-
JDK-8100622 Allow QuantumRenderer thread and FX Application thread to run in parallel
- Closed
- relates to
-
JDK-8127975 TextField : the text sometimes disappear
- Closed