src/java.desktop/share/classes/sun/java2d/loops/GraphicsPrimitive.java

Print this page

        

*** 117,134 **** private CompositeType compositeType; private SurfaceType destType; private long pNativePrim; // Native blit loop info ! public synchronized static final int makePrimTypeID() { if (unusedPrimID > 255) { throw new InternalError("primitive id overflow"); } return unusedPrimID++; } ! public synchronized static final int makeUniqueID(int primTypeID, SurfaceType src, CompositeType cmp, SurfaceType dst) { return (primTypeID << 24) | --- 117,134 ---- private CompositeType compositeType; private SurfaceType destType; private long pNativePrim; // Native blit loop info ! public static final synchronized int makePrimTypeID() { if (unusedPrimID > 255) { throw new InternalError("primitive id overflow"); } return unusedPrimID++; } ! public static final synchronized int makeUniqueID(int primTypeID, SurfaceType src, CompositeType cmp, SurfaceType dst) { return (primTypeID << 24) |
*** 454,464 **** numprims+" different primitives"); } } } ! public synchronized static void tracePrimitive(Object prim) { if ((traceflags & TRACECOUNTS) != 0) { if (traceMap == null) { traceMap = new HashMap<>(); TraceReporter.setShutdownHook(); } --- 454,464 ---- numprims+" different primitives"); } } } ! public static synchronized void tracePrimitive(Object prim) { if ((traceflags & TRACECOUNTS) != 0) { if (traceMap == null) { traceMap = new HashMap<>(); TraceReporter.setShutdownHook(); }