< prev index next >
src/java.desktop/share/classes/sun/java2d/loops/ScaledBlit.java
Print this page
rev 54883 : JDK-8220154 Improve java2d rendering performance on macOS by using Metal framework
*** 144,155 ****
--- 144,159 ----
int sx1, int sy1,
int sx2, int sy2,
double dx1, double dy1,
double dx2, double dy2)
{
+ if ((traceflags & TRACEPTIME) == 0) {
tracePrimitive(target);
+ }
+ long time = System.nanoTime();
target.Scale(src, dst, comp, clip,
sx1, sy1, sx2, sy2,
dx1, dy1, dx2, dy2);
+ tracePrimitiveTime(target, System.nanoTime() - time);
}
}
}
< prev index next >