Lines Matching refs:sg2d

112     public void validatePipe(SunGraphics2D sg2d) {
120 if (sg2d.compositeState < SunGraphics2D.COMP_XOR &&
121 (sg2d.paintState < SunGraphics2D.PAINT_TEXTURE ||
122 sg2d.composite == null ||
123 !(sg2d.composite instanceof AlphaComposite) ||
124 ((AlphaComposite) sg2d.composite).getAlpha() == 1.0f))
128 super.validatePipe(sg2d);
129 textpipe = sg2d.textpipe;
139 if (sg2d.antialiasHint != SunHints.INTVAL_ANTIALIAS_ON) {
140 if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR) {
141 if (sg2d.compositeState <= SunGraphics2D.COMP_XOR) {
145 } else if (sg2d.compositeState <= SunGraphics2D.COMP_ALPHA) {
146 if (XRPaints.isValid(sg2d)) {
154 if (sg2d.antialiasHint == SunHints.INTVAL_ANTIALIAS_ON &&
157 sg2d.shapepipe = aaShapePipe;
158 sg2d.drawpipe = aaPixelToShapeConv;
159 sg2d.fillpipe = aaPixelToShapeConv;
162 if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) {
163 sg2d.drawpipe = txPipe;
164 sg2d.fillpipe = txPipe;
165 } else if (sg2d.strokeState != SunGraphics2D.STROKE_THIN) {
166 sg2d.drawpipe = txPipe;
167 sg2d.fillpipe = nonTxPipe;
169 sg2d.drawpipe = nonTxPipe;
170 sg2d.fillpipe = nonTxPipe;
172 sg2d.shapepipe = nonTxPipe;
175 super.validatePipe(sg2d);
181 sg2d.textpipe = textpipe;
184 sg2d.imagepipe = xrDrawImage;
187 protected MaskFill getMaskFill(SunGraphics2D sg2d) {
188 if (sg2d.paintState > SunGraphics2D.PAINT_ALPHACOLOR &&
189 !XRPaints.isValid(sg2d))
193 return super.getMaskFill(sg2d);
196 public RenderLoops getRenderLoops(SunGraphics2D sg2d) {
197 if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR &&
198 sg2d.compositeState <= SunGraphics2D.COMP_ALPHA)
203 return super.getRenderLoops(sg2d);
328 public boolean copyArea(SunGraphics2D sg2d, int x, int y, int w, int h,
336 CompositeType comptype = sg2d.imageComp;
337 if (sg2d.transformState < SunGraphics2D.TRANSFORM_TRANSLATESCALE &&
341 x += sg2d.transX;
342 y += sg2d.transY;
346 validateCopyAreaGC(sg2d.getCompClip(), needExposures);
445 public void validateAsDestination(SunGraphics2D sg2d, Region clip) {
457 if (sg2d != null && sg2d.compositeState == SunGraphics2D.COMP_XOR) {
458 if (validatedXorComp != sg2d.getComposite()) {
459 validatedXorComp = (XORComposite) sg2d.getComposite();
464 int pixel = sg2d.pixel;
659 public boolean validate(SunGraphics2D sg2d) {
660 XRSurfaceData xsd = (XRSurfaceData) sg2d.surfaceData;
665 return super.validate(sg2d);