src/windows/classes/sun/java2d/windows/GDIWindowSurfaceData.java

Print this page




 193                     }
 194                 }
 195             }
 196             sg2d.imagepipe = imagepipe;
 197             if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) {
 198                 sg2d.drawpipe = gdiTxPipe;
 199                 sg2d.fillpipe = gdiTxPipe;
 200             } else if (sg2d.strokeState != SunGraphics2D.STROKE_THIN){
 201                 sg2d.drawpipe = gdiTxPipe;
 202                 sg2d.fillpipe = gdiPipe;
 203             } else {
 204                 sg2d.drawpipe = gdiPipe;
 205                 sg2d.fillpipe = gdiPipe;
 206             }
 207             sg2d.shapepipe = gdiPipe;
 208             // This is needed for AA text.
 209             // Note that even a SolidTextRenderer can dispatch AA text
 210             // if a GlyphVector overrides the AA setting.
 211             // We use getRenderLoops() rather than setting solidloops
 212             // directly so that we get the appropriate loops in XOR mode.
 213             if (sg2d.loops == null) {


 214                 // assert(some pipe will always be a LoopBasedPipe)
 215                 sg2d.loops = getRenderLoops(sg2d);
 216             }
 217         } else {
 218             super.validatePipe(sg2d);
 219         }
 220     }
 221 
 222     public RenderLoops getRenderLoops(SunGraphics2D sg2d) {
 223         if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR &&
 224             sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY)
 225         {
 226             return solidloops;
 227         }
 228         return super.getRenderLoops(sg2d);
 229     }
 230 
 231     public GraphicsConfiguration getDeviceConfiguration() {
 232         return graphicsConfig;
 233     }




 193                     }
 194                 }
 195             }
 196             sg2d.imagepipe = imagepipe;
 197             if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) {
 198                 sg2d.drawpipe = gdiTxPipe;
 199                 sg2d.fillpipe = gdiTxPipe;
 200             } else if (sg2d.strokeState != SunGraphics2D.STROKE_THIN){
 201                 sg2d.drawpipe = gdiTxPipe;
 202                 sg2d.fillpipe = gdiPipe;
 203             } else {
 204                 sg2d.drawpipe = gdiPipe;
 205                 sg2d.fillpipe = gdiPipe;
 206             }
 207             sg2d.shapepipe = gdiPipe;
 208             // This is needed for AA text.
 209             // Note that even a SolidTextRenderer can dispatch AA text
 210             // if a GlyphVector overrides the AA setting.
 211             // We use getRenderLoops() rather than setting solidloops
 212             // directly so that we get the appropriate loops in XOR mode.
 213             if (sg2d.compositeState == SunGraphics2D.COMP_XOR ||
 214                 sg2d.loops == null)
 215             {
 216                 // assert(some pipe will always be a LoopBasedPipe)
 217                 sg2d.loops = getRenderLoops(sg2d);
 218             }
 219         } else {
 220             super.validatePipe(sg2d);
 221         }
 222     }
 223 
 224     public RenderLoops getRenderLoops(SunGraphics2D sg2d) {
 225         if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR &&
 226             sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY)
 227         {
 228             return solidloops;
 229         }
 230         return super.getRenderLoops(sg2d);
 231     }
 232 
 233     public GraphicsConfiguration getDeviceConfiguration() {
 234         return graphicsConfig;
 235     }