Print this page
Added gradle and cmake project


  95         return new TraceFillSpans(this);
  96     }
  97 
  98     private static class TraceFillSpans extends FillSpans {
  99         FillSpans target;
 100 
 101         public TraceFillSpans(FillSpans target) {
 102             super(target.getSourceType(),
 103                   target.getCompositeType(),
 104                   target.getDestType());
 105             this.target = target;
 106         }
 107 
 108         public GraphicsPrimitive traceWrap() {
 109             return this;
 110         }
 111 
 112         public void FillSpans(SunGraphics2D sg2d, SurfaceData dest,
 113                               SpanIterator si)
 114         {

 115             tracePrimitive(target);


 116             target.FillSpans(sg2d, dest, si);

 117         }
 118     }
 119 }


  95         return new TraceFillSpans(this);
  96     }
  97 
  98     private static class TraceFillSpans extends FillSpans {
  99         FillSpans target;
 100 
 101         public TraceFillSpans(FillSpans target) {
 102             super(target.getSourceType(),
 103                   target.getCompositeType(),
 104                   target.getDestType());
 105             this.target = target;
 106         }
 107 
 108         public GraphicsPrimitive traceWrap() {
 109             return this;
 110         }
 111 
 112         public void FillSpans(SunGraphics2D sg2d, SurfaceData dest,
 113                               SpanIterator si)
 114         {
 115             if ((traceflags & TRACEPTIME) == 0) {
 116                 tracePrimitive(target);
 117             }
 118             long time = System.nanoTime();
 119             target.FillSpans(sg2d, dest, si);
 120             tracePrimitiveTime(target, System.nanoTime() - time);
 121         }
 122     }
 123 }