< prev index next >
src/java.desktop/share/classes/sun/java2d/loops/BlitBg.java
Print this page
rev 54883 : JDK-8220154 Improve java2d rendering performance on macOS by using Metal framework
*** 207,217 ****
--- 207,221 ----
Composite comp, Region clip,
int bgColor,
int srcx, int srcy, int dstx, int dsty,
int width, int height)
{
+ if ((traceflags & TRACEPTIME) == 0) {
tracePrimitive(target);
+ }
+ long time = System.nanoTime();
target.BlitBg(src, dst, comp, clip, bgColor,
srcx, srcy, dstx, dsty, width, height);
+ tracePrimitiveTime(target, System.nanoTime() - time);
}
}
}
< prev index next >