jdk/src/java.desktop/share/classes/sun/java2d/loops/SurfaceType.java
changeset 26037 508779ce6619
parent 26004 7507a1b93f67
parent 25859 3317bb8137f4
child 38984 bbded3eab454
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
   399         this.desc = desc;
   399         this.desc = desc;
   400         this.uniqueID = makeUniqueID(desc);
   400         this.uniqueID = makeUniqueID(desc);
   401         this.pixelConverter = parent.pixelConverter;
   401         this.pixelConverter = parent.pixelConverter;
   402     }
   402     }
   403 
   403 
   404     public synchronized static final int makeUniqueID(String desc) {
   404     public static synchronized int makeUniqueID(String desc) {
   405         Integer i = surfaceUIDMap.get(desc);
   405         Integer i = surfaceUIDMap.get(desc);
   406 
   406 
   407         if (i == null) {
   407         if (i == null) {
   408             if (unusedUID > 255) {
   408             if (unusedUID > 255) {
   409                 throw new InternalError("surface type id overflow");
   409                 throw new InternalError("surface type id overflow");