Lines Matching refs:sg2d

503     public boolean canRenderLCDText(SunGraphics2D sg2d) {
505 if (sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
506 sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR &&
507 sg2d.clipState <= SunGraphics2D.CLIP_RECTANGULAR &&
508 sg2d.surfaceData.getTransparency() == Transparency.OPAQUE)
522 public boolean canRenderParallelograms(SunGraphics2D sg2d) {
523 if (sg2d.paintState <= sg2d.PAINT_ALPHACOLOR) {
524 if (sg2d.compositeState == sg2d.COMP_XOR) {
534 } else if (sg2d.compositeState <= sg2d.COMP_ISCOPY &&
535 sg2d.antialiasHint != SunHints.INTVAL_ANTIALIAS_ON &&
536 sg2d.clipState != sg2d.CLIP_SHAPE)
552 public void validatePipe(SunGraphics2D sg2d) {
553 sg2d.imagepipe = imagepipe;
554 if (sg2d.compositeState == sg2d.COMP_XOR) {
555 if (sg2d.paintState > sg2d.PAINT_ALPHACOLOR) {
556 sg2d.drawpipe = paintViaShape;
557 sg2d.fillpipe = paintViaShape;
558 sg2d.shapepipe = paintShape;
565 sg2d.textpipe = outlineTextRenderer;
568 if (canRenderParallelograms(sg2d)) {
574 sg2d.shapepipe = colorViaPgram;
577 sg2d.shapepipe = colorPrimitives;
579 if (sg2d.clipState == sg2d.CLIP_SHAPE) {
580 sg2d.drawpipe = converter;
581 sg2d.fillpipe = converter;
590 sg2d.textpipe = outlineTextRenderer;
592 if (sg2d.transformState >= sg2d.TRANSFORM_TRANSLATESCALE) {
593 sg2d.drawpipe = converter;
594 sg2d.fillpipe = converter;
596 if (sg2d.strokeState != sg2d.STROKE_THIN) {
597 sg2d.drawpipe = converter;
599 sg2d.drawpipe = colorPrimitives;
601 sg2d.fillpipe = colorPrimitives;
603 sg2d.textpipe = solidTextRenderer;
605 // assert(sg2d.surfaceData == this);
607 } else if (sg2d.compositeState == sg2d.COMP_CUSTOM) {
608 if (sg2d.antialiasHint == SunHints.INTVAL_ANTIALIAS_ON) {
609 if (sg2d.clipState == sg2d.CLIP_SHAPE) {
610 sg2d.drawpipe = AAClipCompViaShape;
611 sg2d.fillpipe = AAClipCompViaShape;
612 sg2d.shapepipe = AAClipCompViaShape;
613 sg2d.textpipe = clipCompText;
615 sg2d.drawpipe = AACompViaShape;
616 sg2d.fillpipe = AACompViaShape;
617 sg2d.shapepipe = AACompViaShape;
618 sg2d.textpipe = compText;
621 sg2d.drawpipe = compViaShape;
622 sg2d.fillpipe = compViaShape;
623 sg2d.shapepipe = compShape;
624 if (sg2d.clipState == sg2d.CLIP_SHAPE) {
625 sg2d.textpipe = clipCompText;
627 sg2d.textpipe = compText;
630 } else if (sg2d.antialiasHint == SunHints.INTVAL_ANTIALIAS_ON) {
631 sg2d.alphafill = getMaskFill(sg2d);
632 // assert(sg2d.surfaceData == this);
633 if (sg2d.alphafill != null) {
634 if (sg2d.clipState == sg2d.CLIP_SHAPE) {
635 sg2d.drawpipe = AAClipColorViaShape;
636 sg2d.fillpipe = AAClipColorViaShape;
637 sg2d.shapepipe = AAClipColorViaShape;
638 sg2d.textpipe = clipColorText;
641 (sg2d.alphafill.canDoParallelograms()
644 sg2d.drawpipe = converter;
645 sg2d.fillpipe = converter;
646 sg2d.shapepipe = converter;
647 if (sg2d.paintState > sg2d.PAINT_ALPHACOLOR ||
648 sg2d.compositeState > sg2d.COMP_ISCOPY)
650 sg2d.textpipe = colorText;
652 sg2d.textpipe = getTextPipe(sg2d, true /* AA==ON */);
656 if (sg2d.clipState == sg2d.CLIP_SHAPE) {
657 sg2d.drawpipe = AAClipPaintViaShape;
658 sg2d.fillpipe = AAClipPaintViaShape;
659 sg2d.shapepipe = AAClipPaintViaShape;
660 sg2d.textpipe = clipPaintText;
662 sg2d.drawpipe = AAPaintViaShape;
663 sg2d.fillpipe = AAPaintViaShape;
664 sg2d.shapepipe = AAPaintViaShape;
665 sg2d.textpipe = paintText;
668 } else if (sg2d.paintState > sg2d.PAINT_ALPHACOLOR ||
669 sg2d.compositeState > sg2d.COMP_ISCOPY ||
670 sg2d.clipState == sg2d.CLIP_SHAPE)
672 sg2d.drawpipe = paintViaShape;
673 sg2d.fillpipe = paintViaShape;
674 sg2d.shapepipe = paintShape;
675 sg2d.alphafill = getMaskFill(sg2d);
676 // assert(sg2d.surfaceData == this);
677 if (sg2d.alphafill != null) {
678 if (sg2d.clipState == sg2d.CLIP_SHAPE) {
679 sg2d.textpipe = clipColorText;
681 sg2d.textpipe = colorText;
684 if (sg2d.clipState == sg2d.CLIP_SHAPE) {
685 sg2d.textpipe = clipPaintText;
687 sg2d.textpipe = paintText;
692 if (canRenderParallelograms(sg2d)) {
698 sg2d.shapepipe = colorViaPgram;
701 sg2d.shapepipe = colorPrimitives;
703 if (sg2d.transformState >= sg2d.TRANSFORM_TRANSLATESCALE) {
704 sg2d.drawpipe = converter;
705 sg2d.fillpipe = converter;
707 if (sg2d.strokeState != sg2d.STROKE_THIN) {
708 sg2d.drawpipe = converter;
710 sg2d.drawpipe = colorPrimitives;
712 sg2d.fillpipe = colorPrimitives;
715 sg2d.textpipe = getTextPipe(sg2d, false /* AA==OFF */);
716 // assert(sg2d.surfaceData == this);
720 if (sg2d.textpipe instanceof LoopBasedPipe ||
721 sg2d.shapepipe instanceof LoopBasedPipe ||
722 sg2d.fillpipe instanceof LoopBasedPipe ||
723 sg2d.drawpipe instanceof LoopBasedPipe ||
724 sg2d.imagepipe instanceof LoopBasedPipe)
726 sg2d.loops = getRenderLoops(sg2d);
735 private TextPipe getTextPipe(SunGraphics2D sg2d, boolean aaHintIsOn) {
740 switch (sg2d.textAntialiasHint) {
754 switch (sg2d.getFontInfo().aaHint) {
782 private static SurfaceType getPaintSurfaceType(SunGraphics2D sg2d) {
783 switch (sg2d.paintState) {
789 if (sg2d.paint.getTransparency() == OPAQUE) {
795 if (sg2d.paint.getTransparency() == OPAQUE) {
801 if (sg2d.paint.getTransparency() == OPAQUE) {
807 if (sg2d.paint.getTransparency() == OPAQUE) {
818 private static CompositeType getFillCompositeType(SunGraphics2D sg2d) {
819 CompositeType compType = sg2d.imageComp;
820 if (sg2d.compositeState == sg2d.COMP_ISCOPY) {
838 protected MaskFill getMaskFill(SunGraphics2D sg2d) {
839 SurfaceType src = getPaintSurfaceType(sg2d);
840 CompositeType comp = getFillCompositeType(sg2d);
852 public RenderLoops getRenderLoops(SunGraphics2D sg2d) {
853 SurfaceType src = getPaintSurfaceType(sg2d);
854 CompositeType comp = getFillCompositeType(sg2d);
855 SurfaceType dst = sg2d.getSurfaceData().getSurfaceType();
1043 public boolean copyArea(SunGraphics2D sg2d,