src/share/classes/sun/java2d/cmm/lcms/LCMS.java

Print this page




 190     public static native void freeTransform(long ID);
 191 
 192     public static native void initLCMS(Class Trans, Class IL, Class Pf);
 193 
 194     private LCMS() {};
 195 
 196     private static LCMS theLcms = null;
 197 
 198     static synchronized PCMM getModule() {
 199         if (theLcms != null) {
 200             return theLcms;
 201         }
 202 
 203         java.security.AccessController.doPrivileged(
 204                 new java.security.PrivilegedAction() {
 205                     public Object run() {
 206                         /* We need to load awt here because of usage trace and
 207                          * disposer frameworks
 208                          */
 209                         System.loadLibrary("awt");
 210                         System.loadLibrary("lcms");
 211                         return null;
 212                     }
 213                 });
 214 
 215         initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);
 216 
 217         theLcms = new LCMS();
 218 
 219         return theLcms;
 220     }
 221 }


 190     public static native void freeTransform(long ID);
 191 
 192     public static native void initLCMS(Class Trans, Class IL, Class Pf);
 193 
 194     private LCMS() {};
 195 
 196     private static LCMS theLcms = null;
 197 
 198     static synchronized PCMM getModule() {
 199         if (theLcms != null) {
 200             return theLcms;
 201         }
 202 
 203         java.security.AccessController.doPrivileged(
 204                 new java.security.PrivilegedAction() {
 205                     public Object run() {
 206                         /* We need to load awt here because of usage trace and
 207                          * disposer frameworks
 208                          */
 209                         System.loadLibrary("awt");
 210                         System.loadLibrary("j2lcms");
 211                         return null;
 212                     }
 213                 });
 214 
 215         initLCMS(LCMSTransform.class, LCMSImageLayout.class, ICC_Profile.class);
 216 
 217         theLcms = new LCMS();
 218 
 219         return theLcms;
 220     }
 221 }