135 return new TraceDrawGlyphListAA(this); 136 } 137 138 private static class TraceDrawGlyphListAA extends DrawGlyphListAA { 139 DrawGlyphListAA target; 140 141 public TraceDrawGlyphListAA(DrawGlyphListAA target) { 142 super(target.getSourceType(), 143 target.getCompositeType(), 144 target.getDestType()); 145 this.target = target; 146 } 147 148 public GraphicsPrimitive traceWrap() { 149 return this; 150 } 151 152 public void DrawGlyphListAA(SunGraphics2D sg2d, SurfaceData dest, 153 GlyphList glyphs) 154 { 155 tracePrimitive(target); 156 target.DrawGlyphListAA(sg2d, dest, glyphs); 157 } 158 } 159 } | 135 return new TraceDrawGlyphListAA(this); 136 } 137 138 private static class TraceDrawGlyphListAA extends DrawGlyphListAA { 139 DrawGlyphListAA target; 140 141 public TraceDrawGlyphListAA(DrawGlyphListAA target) { 142 super(target.getSourceType(), 143 target.getCompositeType(), 144 target.getDestType()); 145 this.target = target; 146 } 147 148 public GraphicsPrimitive traceWrap() { 149 return this; 150 } 151 152 public void DrawGlyphListAA(SunGraphics2D sg2d, SurfaceData dest, 153 GlyphList glyphs) 154 { 155 if ((traceflags & TRACEPTIME) == 0) { 156 tracePrimitive(target); 157 } 158 long time = System.nanoTime(); 159 target.DrawGlyphListAA(sg2d, dest, glyphs); 160 tracePrimitiveTime(target, System.nanoTime() - time); 161 } 162 } 163 } |