Print this page
Added gradle and cmake project

Split Close
Expand all
Collapse all
          --- old/src/java.desktop/share/classes/sun/java2d/loops/DrawLine.java
          +++ new/src/java.desktop/share/classes/sun/java2d/loops/DrawLine.java
↓ open down ↓ 96 lines elided ↑ open up ↑
  97   97              this.target = target;
  98   98          }
  99   99  
 100  100          public GraphicsPrimitive traceWrap() {
 101  101              return this;
 102  102          }
 103  103  
 104  104          public void DrawLine(SunGraphics2D sg2d, SurfaceData dest,
 105  105                               int x1, int y1, int x2, int y2)
 106  106          {
 107      -            tracePrimitive(target);
      107 +            if ((traceflags & TRACEPTIME) == 0) {
      108 +                tracePrimitive(target);
      109 +            }
      110 +            long time = System.nanoTime();
 108  111              target.DrawLine(sg2d, dest, x1, y1, x2, y2);
      112 +            tracePrimitiveTime(target, System.nanoTime() - time);
 109  113          }
 110  114      }
 111  115  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX