< prev index next >

modules/javafx.graphics/src/main/java/com/sun/marlin/MarlinRenderingEngine.java

Print this page


   1 /*
   2  * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 134             case ReentrantContextProvider.REF_WEAK:
 135                 refType = "weak";
 136                 break;
 137         }
 138 
 139         logInfo("=========================================================="
 140                 + "=====================");
 141 
 142         logInfo("Marlin software rasterizer    = ENABLED");
 143         logInfo("Version                       = ["
 144                 + Version.getVersion() + "]");
 145         logInfo("prism.marlin                  = "
 146                 + reClass);
 147         logInfo("prism.marlin.useThreadLocal   = "
 148                 + USE_THREAD_LOCAL);
 149         logInfo("prism.marlin.useRef           = "
 150                 + refType);
 151 
 152         logInfo("prism.marlin.edges            = "
 153                 + MarlinConst.INITIAL_EDGES_COUNT);
 154         logInfo("prism.marlin.pixelsize        = "
 155                 + MarlinConst.INITIAL_PIXEL_DIM);






 156 
 157         logInfo("prism.marlin.subPixel_log2_X  = "
 158                 + MarlinConst.SUBPIXEL_LG_POSITIONS_X);
 159         logInfo("prism.marlin.subPixel_log2_Y  = "
 160                 + MarlinConst.SUBPIXEL_LG_POSITIONS_Y);
 161 
 162         logInfo("prism.marlin.blockSize_log2   = "
 163                 + MarlinConst.BLOCK_SIZE_LG);
 164 
 165         // RLE / blockFlags settings
 166 
 167         logInfo("prism.marlin.forceRLE         = "
 168                 + MarlinProperties.isForceRLE());
 169         logInfo("prism.marlin.forceNoRLE       = "
 170                 + MarlinProperties.isForceNoRLE());
 171         logInfo("prism.marlin.useTileFlags     = "
 172                 + MarlinProperties.isUseTileFlags());
 173         logInfo("prism.marlin.useTileFlags.useHeuristics = "
 174                 + MarlinProperties.isUseTileFlagsWithHeuristics());
 175         logInfo("prism.marlin.rleMinWidth      = "
 176                 + MarlinConst.RLE_MIN_WIDTH);
 177 
 178         // optimisation parameters
 179         logInfo("prism.marlin.useSimplifier    = "
 180                 + MarlinConst.USE_SIMPLIFIER);





 181         logInfo("prism.marlin.clip             = "
 182                 + MarlinProperties.isDoClip());
 183         logInfo("prism.marlin.clip.runtime.enable = "
 184                 + MarlinProperties.isDoClipRuntimeFlag());
 185 





 186         // debugging parameters
 187         logInfo("prism.marlin.doStats          = "
 188                 + MarlinConst.DO_STATS);
 189         logInfo("prism.marlin.doMonitors       = "
 190                 + MarlinConst.DO_MONITORS);
 191         logInfo("prism.marlin.doChecks         = "
 192                 + MarlinConst.DO_CHECKS);
 193 
 194         // logging parameters
 195         logInfo("prism.marlin.log              = "
 196                 + MarlinConst.ENABLE_LOGS);
 197         logInfo("prism.marlin.useLogger        = "
 198                 + MarlinConst.USE_LOGGER);
 199         logInfo("prism.marlin.logCreateContext = "
 200                 + MarlinConst.LOG_CREATE_CONTEXT);
 201         logInfo("prism.marlin.logUnsafeMalloc  = "
 202                 + MarlinConst.LOG_UNSAFE_MALLOC);
 203 
 204         // quality settings


 205         logInfo("prism.marlin.cubic_dec_d2     = "
 206                 + MarlinProperties.getCubicDecD2());
 207         logInfo("prism.marlin.cubic_inc_d1     = "
 208                 + MarlinProperties.getCubicIncD1());
 209         logInfo("prism.marlin.quad_dec_d2      = "
 210                 + MarlinProperties.getQuadDecD2());
 211 
 212         logInfo("Renderer settings:");
 213         logInfo("CUB_DEC_BND  = " + Renderer.CUB_DEC_BND);
 214         logInfo("CUB_INC_BND  = " + Renderer.CUB_INC_BND);
 215         logInfo("QUAD_DEC_BND = " + Renderer.QUAD_DEC_BND);
 216 
 217         logInfo("INITIAL_EDGES_CAPACITY        = "
 218                 + MarlinConst.INITIAL_EDGES_CAPACITY);
 219         logInfo("INITIAL_CROSSING_COUNT        = "
 220                 + MarlinConst.INITIAL_CROSSING_COUNT);
 221 
 222         logInfo("=========================================================="
 223                 + "=====================");
 224     }


   1 /*
   2  * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 134             case ReentrantContextProvider.REF_WEAK:
 135                 refType = "weak";
 136                 break;
 137         }
 138 
 139         logInfo("=========================================================="
 140                 + "=====================");
 141 
 142         logInfo("Marlin software rasterizer    = ENABLED");
 143         logInfo("Version                       = ["
 144                 + Version.getVersion() + "]");
 145         logInfo("prism.marlin                  = "
 146                 + reClass);
 147         logInfo("prism.marlin.useThreadLocal   = "
 148                 + USE_THREAD_LOCAL);
 149         logInfo("prism.marlin.useRef           = "
 150                 + refType);
 151 
 152         logInfo("prism.marlin.edges            = "
 153                 + MarlinConst.INITIAL_EDGES_COUNT);
 154         logInfo("prism.marlin.pixelWidth       = "
 155                 + MarlinConst.INITIAL_PIXEL_WIDTH);
 156         logInfo("prism.marlin.pixelHeight      = "
 157                 + MarlinConst.INITIAL_PIXEL_HEIGHT);
 158 
 159         logInfo("prism.marlin.profile          = "
 160                 + (MarlinProperties.isProfileQuality() ?
 161                     "quality" : "speed"));
 162 
 163         logInfo("prism.marlin.subPixel_log2_X  = "
 164                 + MarlinConst.SUBPIXEL_LG_POSITIONS_X);
 165         logInfo("prism.marlin.subPixel_log2_Y  = "
 166                 + MarlinConst.SUBPIXEL_LG_POSITIONS_Y);
 167 
 168         logInfo("prism.marlin.blockSize_log2   = "
 169                 + MarlinConst.BLOCK_SIZE_LG);
 170 
 171         // RLE / blockFlags settings
 172 
 173         logInfo("prism.marlin.forceRLE         = "
 174                 + MarlinProperties.isForceRLE());
 175         logInfo("prism.marlin.forceNoRLE       = "
 176                 + MarlinProperties.isForceNoRLE());
 177         logInfo("prism.marlin.useTileFlags     = "
 178                 + MarlinProperties.isUseTileFlags());
 179         logInfo("prism.marlin.useTileFlags.useHeuristics = "
 180                 + MarlinProperties.isUseTileFlagsWithHeuristics());
 181         logInfo("prism.marlin.rleMinWidth      = "
 182                 + MarlinConst.RLE_MIN_WIDTH);
 183 
 184         // optimisation parameters
 185         logInfo("prism.marlin.useSimplifier    = "
 186                 + MarlinConst.USE_SIMPLIFIER);
 187         logInfo("prism.marlin.usePathSimplifier= "
 188                 + MarlinConst.USE_PATH_SIMPLIFIER);
 189         logInfo("prism.marlin.pathSimplifier.pixTol = "
 190                 + MarlinProperties.getPathSimplifierPixelTolerance());
 191 
 192         logInfo("prism.marlin.clip             = "
 193                 + MarlinProperties.isDoClip());
 194         logInfo("prism.marlin.clip.runtime.enable = "
 195                 + MarlinProperties.isDoClipRuntimeFlag());
 196 
 197         logInfo("prism.marlin.clip.subdivider  = "
 198                 + MarlinProperties.isDoClipSubdivider());
 199         logInfo("prism.marlin.clip.subdivider.minLength = "
 200                 + MarlinProperties.getSubdividerMinLength());
 201 
 202         // debugging parameters
 203         logInfo("prism.marlin.doStats          = "
 204                 + MarlinConst.DO_STATS);
 205         logInfo("prism.marlin.doMonitors       = "
 206                 + MarlinConst.DO_MONITORS);
 207         logInfo("prism.marlin.doChecks         = "
 208                 + MarlinConst.DO_CHECKS);
 209 
 210         // logging parameters
 211         logInfo("prism.marlin.log              = "
 212                 + MarlinConst.ENABLE_LOGS);
 213         logInfo("prism.marlin.useLogger        = "
 214                 + MarlinConst.USE_LOGGER);
 215         logInfo("prism.marlin.logCreateContext = "
 216                 + MarlinConst.LOG_CREATE_CONTEXT);
 217         logInfo("prism.marlin.logUnsafeMalloc  = "
 218                 + MarlinConst.LOG_UNSAFE_MALLOC);
 219 
 220         // quality settings
 221         logInfo("prism.marlin.curve_len_err    = "
 222                 + MarlinProperties.getCurveLengthError());
 223         logInfo("prism.marlin.cubic_dec_d2     = "
 224                 + MarlinProperties.getCubicDecD2());
 225         logInfo("prism.marlin.cubic_inc_d1     = "
 226                 + MarlinProperties.getCubicIncD1());
 227         logInfo("prism.marlin.quad_dec_d2      = "
 228                 + MarlinProperties.getQuadDecD2());
 229 
 230         logInfo("Renderer settings:");
 231         logInfo("CUB_DEC_BND  = " + Renderer.CUB_DEC_BND);
 232         logInfo("CUB_INC_BND  = " + Renderer.CUB_INC_BND);
 233         logInfo("QUAD_DEC_BND = " + Renderer.QUAD_DEC_BND);
 234 
 235         logInfo("INITIAL_EDGES_CAPACITY        = "
 236                 + MarlinConst.INITIAL_EDGES_CAPACITY);
 237         logInfo("INITIAL_CROSSING_COUNT        = "
 238                 + MarlinConst.INITIAL_CROSSING_COUNT);
 239 
 240         logInfo("=========================================================="
 241                 + "=====================");
 242     }


< prev index next >