Print this page
Added gradle and cmake project

Split Close
Expand all
Collapse all
          --- old/src/java.desktop/share/classes/sun/java2d/loops/MaskBlit.java
          +++ new/src/java.desktop/share/classes/sun/java2d/loops/MaskBlit.java
↓ open down ↓ 247 lines elided ↑ open up ↑
 248  248          public GraphicsPrimitive traceWrap() {
 249  249              return this;
 250  250          }
 251  251  
 252  252          public void MaskBlit(SurfaceData src, SurfaceData dst,
 253  253                               Composite comp, Region clip,
 254  254                               int srcx, int srcy, int dstx, int dsty,
 255  255                               int width, int height,
 256  256                               byte[] mask, int maskoff, int maskscan)
 257  257          {
 258      -            tracePrimitive(target);
      258 +            if ((traceflags & TRACEPTIME) == 0) {
      259 +                tracePrimitive(target);
      260 +            }
      261 +            long time = System.nanoTime();
 259  262              target.MaskBlit(src, dst, comp, clip,
 260  263                              srcx, srcy, dstx, dsty, width, height,
 261  264                              mask, maskoff, maskscan);
      265 +            tracePrimitiveTime(target, System.nanoTime() - time);
 262  266          }
 263  267      }
 264  268  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX