equal
deleted
inserted
replaced
117 private CompositeType compositeType; |
117 private CompositeType compositeType; |
118 private SurfaceType destType; |
118 private SurfaceType destType; |
119 |
119 |
120 private long pNativePrim; // Native blit loop info |
120 private long pNativePrim; // Native blit loop info |
121 |
121 |
122 public synchronized static final int makePrimTypeID() { |
122 public static final synchronized int makePrimTypeID() { |
123 if (unusedPrimID > 255) { |
123 if (unusedPrimID > 255) { |
124 throw new InternalError("primitive id overflow"); |
124 throw new InternalError("primitive id overflow"); |
125 } |
125 } |
126 return unusedPrimID++; |
126 return unusedPrimID++; |
127 } |
127 } |
128 |
128 |
129 public synchronized static final int makeUniqueID(int primTypeID, |
129 public static final synchronized int makeUniqueID(int primTypeID, |
130 SurfaceType src, |
130 SurfaceType src, |
131 CompositeType cmp, |
131 CompositeType cmp, |
132 SurfaceType dst) |
132 SurfaceType dst) |
133 { |
133 { |
134 return (primTypeID << 24) | |
134 return (primTypeID << 24) | |
454 numprims+" different primitives"); |
454 numprims+" different primitives"); |
455 } |
455 } |
456 } |
456 } |
457 } |
457 } |
458 |
458 |
459 public synchronized static void tracePrimitive(Object prim) { |
459 public static synchronized void tracePrimitive(Object prim) { |
460 if ((traceflags & TRACECOUNTS) != 0) { |
460 if ((traceflags & TRACECOUNTS) != 0) { |
461 if (traceMap == null) { |
461 if (traceMap == null) { |
462 traceMap = new HashMap<>(); |
462 traceMap = new HashMap<>(); |
463 TraceReporter.setShutdownHook(); |
463 TraceReporter.setShutdownHook(); |
464 } |
464 } |