modules/graphics/src/main/java/com/sun/prism/impl/PrismSettings.java

Print this page




 236             primTextureSize = 0;
 237         } else {
 238             primTextureSize =
 239                     parseInt(primtex, 0,
 240                              "Try -Dprism.primtextures=[true|false|<number>]");
 241         }
 242 
 243         /* Setting for reference type used by Disposer */
 244         refType = systemProperties.getProperty("prism.reftype");
 245 
 246         /* shutdown the pipeline on System.exit, ^c - needed with X11, so linux default is true */
 247         shutdownHook = getBoolean(systemProperties, "prism.shutdownHook",
 248                                   PlatformUtil.isUnix());
 249 
 250         forcePow2 = getBoolean(systemProperties, "prism.forcepowerof2", false);
 251         noClampToZero = getBoolean(systemProperties, "prism.noclamptozero", false);
 252 
 253         allowHiDPIScaling = getBoolean(systemProperties, "prism.allowhidpi", true);
 254 
 255         maxVram = getLong(systemProperties, "prism.maxvram", 256 * 1024 * 1024, null);
 256         targetVram = getLong(systemProperties, "prism.targetvram", maxVram / 2, null);
 257         poolStats = getBoolean(systemProperties, "prism.poolstats", false);
 258         poolDebug = getBoolean(systemProperties, "prism.pooldebug", false);
 259 
 260         if (verbose) {
 261             System.out.print("Prism pipeline init order: ");
 262             for (String s : tryOrder) {
 263                 System.out.print(s+" ");
 264             }
 265             System.out.println("");
 266             if (PrismSettings.doPiscesText || PrismSettings.doOpenPiscesText) {
 267                 System.out.println("Using " + text + " for text rasterization");
 268             } else {
 269                 System.out.println("Using platform text rasterizer");
 270             }
 271             String piscestype = (doNativePisces ? "native" : "java");
 272             System.out.println("Using " + piscestype + "-based Pisces rasterizer");
 273             printBooleanOption(dirtyOptsEnabled, "Using dirty region optimizations");
 274             if (primTextureSize == 0) {
 275                 System.out.println("Not using texture mask for primitives");
 276             } else if (primTextureSize < 0) {




 236             primTextureSize = 0;
 237         } else {
 238             primTextureSize =
 239                     parseInt(primtex, 0,
 240                              "Try -Dprism.primtextures=[true|false|<number>]");
 241         }
 242 
 243         /* Setting for reference type used by Disposer */
 244         refType = systemProperties.getProperty("prism.reftype");
 245 
 246         /* shutdown the pipeline on System.exit, ^c - needed with X11, so linux default is true */
 247         shutdownHook = getBoolean(systemProperties, "prism.shutdownHook",
 248                                   PlatformUtil.isUnix());
 249 
 250         forcePow2 = getBoolean(systemProperties, "prism.forcepowerof2", false);
 251         noClampToZero = getBoolean(systemProperties, "prism.noclamptozero", false);
 252 
 253         allowHiDPIScaling = getBoolean(systemProperties, "prism.allowhidpi", true);
 254 
 255         maxVram = getLong(systemProperties, "prism.maxvram", 256 * 1024 * 1024, null);
 256         targetVram = getLong(systemProperties, "prism.targetvram", maxVram * 3 / 4, null);
 257         poolStats = getBoolean(systemProperties, "prism.poolstats", false);
 258         poolDebug = getBoolean(systemProperties, "prism.pooldebug", false);
 259 
 260         if (verbose) {
 261             System.out.print("Prism pipeline init order: ");
 262             for (String s : tryOrder) {
 263                 System.out.print(s+" ");
 264             }
 265             System.out.println("");
 266             if (PrismSettings.doPiscesText || PrismSettings.doOpenPiscesText) {
 267                 System.out.println("Using " + text + " for text rasterization");
 268             } else {
 269                 System.out.println("Using platform text rasterizer");
 270             }
 271             String piscestype = (doNativePisces ? "native" : "java");
 272             System.out.println("Using " + piscestype + "-based Pisces rasterizer");
 273             printBooleanOption(dirtyOptsEnabled, "Using dirty region optimizations");
 274             if (primTextureSize == 0) {
 275                 System.out.println("Not using texture mask for primitives");
 276             } else if (primTextureSize < 0) {