< prev index next >

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

Print this page

        

@@ -53,10 +53,11 @@
     public static final boolean cacheComplexShapes;
     public static final boolean useNewImageLoader;
     public static final List<String> tryOrder;
     public static final int prismStatFrequency;
     public static final boolean doNativePisces;
+    public static final boolean useMarlinRasterizer;
     public static final String refType;
     public static final boolean forceRepaint;
     public static final boolean noFallback;
     public static final boolean showDirtyRegions;
     public static final boolean showOverdraw;

@@ -212,15 +213,20 @@
             }
         }
 
         tryOrder = Collections.unmodifiableList(Arrays.asList(tryOrderArr));
 
-        String npprop = systemProperties.getProperty("prism.nativepisces");
-        if (npprop == null) {
-            doNativePisces = PlatformUtil.isEmbedded() || !PlatformUtil.isLinux();
+        useMarlinRasterizer = getBoolean(systemProperties, "prism.marlinrasterizer", false);
+        if (useMarlinRasterizer) {
+            doNativePisces = false;
         } else {
-            doNativePisces = Boolean.parseBoolean(npprop);
+            String npprop = systemProperties.getProperty("prism.nativepisces");
+            if (npprop == null) {
+                doNativePisces = PlatformUtil.isEmbedded() || !PlatformUtil.isLinux();
+            } else {
+                doNativePisces = Boolean.parseBoolean(npprop);
+            }
         }
 
         String primtex = systemProperties.getProperty("prism.primtextures");
         if (primtex == null) {
             primTextureSize = PlatformUtil.isEmbedded() ? -1 : 0;

@@ -253,12 +259,16 @@
             System.out.print("Prism pipeline init order: ");
             for (String s : tryOrder) {
                 System.out.print(s+" ");
             }
             System.out.println("");
-            String piscestype = (doNativePisces ? "native" : "java");
-            System.out.println("Using " + piscestype + "-based Pisces rasterizer");
+            if (useMarlinRasterizer) {
+                System.out.println("Using Marlin rasterizer");
+            } else {
+                String piscestype = (doNativePisces ? "native" : "java");
+                System.out.println("Using " + piscestype + "-based Pisces rasterizer");
+            }
             printBooleanOption(dirtyOptsEnabled, "Using dirty region optimizations");
             if (primTextureSize == 0) {
                 System.out.println("Not using texture mask for primitives");
             } else if (primTextureSize < 0) {
                 System.out.println("Using system sized mask for primitives");
< prev index next >