< prev index next >
src/java.desktop/share/classes/sun/java2d/loops/FillRect.java
Print this page
rev 54883 : JDK-8220154 Improve java2d rendering performance on macOS by using Metal framework
@@ -123,10 +123,14 @@
}
public void FillRect(SunGraphics2D sg2d, SurfaceData dest,
int x, int y, int w, int h)
{
+ if ((traceflags & TRACEPTIME) == 0) {
tracePrimitive(target);
+ }
+ long time = System.nanoTime();
target.FillRect(sg2d, dest, x, y, w, h);
+ tracePrimitiveTime(target, System.nanoTime() - time);
}
}
}
< prev index next >