Print this page
Added gradle and cmake project

Split Close
Expand all
Collapse all
          --- old/src/java.desktop/share/classes/sun/java2d/loops/Blit.java
          +++ new/src/java.desktop/share/classes/sun/java2d/loops/Blit.java
↓ open down ↓ 316 lines elided ↑ open up ↑
 317  317  
 318  318          public GraphicsPrimitive traceWrap() {
 319  319              return this;
 320  320          }
 321  321  
 322  322          public void Blit(SurfaceData src, SurfaceData dst,
 323  323                           Composite comp, Region clip,
 324  324                           int srcx, int srcy, int dstx, int dsty,
 325  325                           int width, int height)
 326  326          {
 327      -            tracePrimitive(target);
      327 +            if ((traceflags & TRACEPTIME) == 0) {
      328 +                tracePrimitive(target);
      329 +            }
      330 +            long time = System.nanoTime();
 328  331              target.Blit(src, dst, comp, clip,
 329  332                          srcx, srcy, dstx, dsty, width, height);
      333 +            tracePrimitiveTime(target, System.nanoTime() - time);
 330  334          }
 331  335      }
 332  336  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX