< prev index next >

src/java.desktop/share/classes/sun/java2d/loops/Blit.java

Print this page




 307 
 308     private static class TraceBlit extends Blit {
 309         Blit target;
 310 
 311         public TraceBlit(Blit target) {
 312             super(target.getSourceType(),
 313                   target.getCompositeType(),
 314                   target.getDestType());
 315             this.target = target;
 316         }
 317 
 318         public GraphicsPrimitive traceWrap() {
 319             return this;
 320         }
 321 
 322         public void Blit(SurfaceData src, SurfaceData dst,
 323                          Composite comp, Region clip,
 324                          int srcx, int srcy, int dstx, int dsty,
 325                          int width, int height)
 326         {

 327             tracePrimitive(target);


 328             target.Blit(src, dst, comp, clip,
 329                         srcx, srcy, dstx, dsty, width, height);

 330         }
 331     }
 332 }


 307 
 308     private static class TraceBlit extends Blit {
 309         Blit target;
 310 
 311         public TraceBlit(Blit target) {
 312             super(target.getSourceType(),
 313                   target.getCompositeType(),
 314                   target.getDestType());
 315             this.target = target;
 316         }
 317 
 318         public GraphicsPrimitive traceWrap() {
 319             return this;
 320         }
 321 
 322         public void Blit(SurfaceData src, SurfaceData dst,
 323                          Composite comp, Region clip,
 324                          int srcx, int srcy, int dstx, int dsty,
 325                          int width, int height)
 326         {
 327             if ((traceflags & TRACEPTIME) == 0) {
 328                 tracePrimitive(target);
 329             }
 330             long time = System.nanoTime();
 331             target.Blit(src, dst, comp, clip,
 332                         srcx, srcy, dstx, dsty, width, height);
 333             tracePrimitiveTime(target, System.nanoTime() - time);
 334         }
 335     }
 336 }
< prev index next >