modules/graphics/src/main/java/com/sun/prism/impl/shape/OpenPiscesRasterizer.java
Print this page
*** 44,54 ****
@Override
public MaskData getMaskData(Shape shape,
BasicStroke stroke,
RectBounds xformBounds,
BaseTransform xform,
! boolean close)
{
if (stroke != null && stroke.getType() != BasicStroke.TYPE_CENTERED) {
// RT-27427
// TODO: Optimize the combinatorial strokes for simple
// shapes and/or teach the rasterizer to be able to
--- 44,54 ----
@Override
public MaskData getMaskData(Shape shape,
BasicStroke stroke,
RectBounds xformBounds,
BaseTransform xform,
! boolean close, boolean antialiasedShape)
{
if (stroke != null && stroke.getType() != BasicStroke.TYPE_CENTERED) {
// RT-27427
// TODO: Optimize the combinatorial strokes for simple
// shapes and/or teach the rasterizer to be able to
*** 75,88 ****
if (rclip.isEmpty()) {
return emptyData;
}
Renderer renderer = null;
if (shape instanceof Path2D) {
! renderer = OpenPiscesPrismUtils.setupRenderer((Path2D) shape, stroke, xform, rclip);
}
if (renderer == null) {
! renderer = OpenPiscesPrismUtils.setupRenderer(shape, stroke, xform, rclip);
}
int outpix_xmin = renderer.getOutpixMinX();
int outpix_ymin = renderer.getOutpixMinY();
int outpix_xmax = renderer.getOutpixMaxX();
int outpix_ymax = renderer.getOutpixMaxY();
--- 75,90 ----
if (rclip.isEmpty()) {
return emptyData;
}
Renderer renderer = null;
if (shape instanceof Path2D) {
! renderer = OpenPiscesPrismUtils.setupRenderer((Path2D) shape, stroke, xform, rclip,
! antialiasedShape);
}
if (renderer == null) {
! renderer = OpenPiscesPrismUtils.setupRenderer(shape, stroke, xform, rclip,
! antialiasedShape);
}
int outpix_xmin = renderer.getOutpixMinX();
int outpix_ymin = renderer.getOutpixMinY();
int outpix_xmax = renderer.getOutpixMaxX();
int outpix_ymax = renderer.getOutpixMaxY();