< prev index next >

openjfx9/modules/javafx.graphics/src/main/java/com/sun/marlin/MarlinConst.java

Print this page

        

*** 21,36 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package sun.java2d.marlin; /** * Marlin constant holder using System properties */ ! interface MarlinConst { // enable Logs (logger or stdout) static final boolean ENABLE_LOGS = MarlinProperties.isLoggingEnabled(); // use Logger instead of stdout static final boolean USE_LOGGER = ENABLE_LOGS && MarlinProperties.isUseLogger(); --- 21,36 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package com.sun.marlin; /** * Marlin constant holder using System properties */ ! public interface MarlinConst { // enable Logs (logger or stdout) static final boolean ENABLE_LOGS = MarlinProperties.isLoggingEnabled(); // use Logger instead of stdout static final boolean USE_LOGGER = ENABLE_LOGS && MarlinProperties.isUseLogger();
*** 93,106 **** static final int INITIAL_AA_ARRAY = INITIAL_PIXEL_DIM; // 4096 edges for initial capacity static final int INITIAL_EDGES_COUNT = MarlinProperties.getInitialEdges(); ! // initial edges = 3/4 * edges count (4096) // 6 ints per edges = 24 bytes ! // edges capacity = 24 x initial edges = 18 * edges count (4096) = 72K ! static final int INITIAL_EDGES_CAPACITY = INITIAL_EDGES_COUNT * 18; // zero value as byte static final byte BYTE_0 = (byte) 0; // subpixels expressed as log2 --- 93,106 ---- static final int INITIAL_AA_ARRAY = INITIAL_PIXEL_DIM; // 4096 edges for initial capacity static final int INITIAL_EDGES_COUNT = MarlinProperties.getInitialEdges(); ! // initial edges = edges count (4096) // 6 ints per edges = 24 bytes ! // edges capacity = 24 x initial edges = 24 * edges count (4096) = 96K ! static final int INITIAL_EDGES_CAPACITY = INITIAL_EDGES_COUNT * 24; // zero value as byte static final byte BYTE_0 = (byte) 0; // subpixels expressed as log2
*** 118,128 **** + SUBPIXEL_POSITIONS_Y * SUBPIXEL_POSITIONS_Y)/2.0); public static final int MAX_AA_ALPHA = SUBPIXEL_POSITIONS_X * SUBPIXEL_POSITIONS_Y; - public static final int TILE_SIZE_LG = MarlinProperties.getTileSize_Log2(); - public static final int TILE_SIZE = 1 << TILE_SIZE_LG; // 32 by default - public static final int BLOCK_SIZE_LG = MarlinProperties.getBlockSize_Log2(); public static final int BLOCK_SIZE = 1 << BLOCK_SIZE_LG; } --- 118,134 ---- + SUBPIXEL_POSITIONS_Y * SUBPIXEL_POSITIONS_Y)/2.0); public static final int MAX_AA_ALPHA = SUBPIXEL_POSITIONS_X * SUBPIXEL_POSITIONS_Y; public static final int BLOCK_SIZE_LG = MarlinProperties.getBlockSize_Log2(); public static final int BLOCK_SIZE = 1 << BLOCK_SIZE_LG; + + static final boolean ENABLE_BLOCK_FLAGS = MarlinProperties.isUseTileFlags(); + static final boolean ENABLE_BLOCK_FLAGS_HEURISTICS = MarlinProperties.isUseTileFlagsWithHeuristics(); + + static final boolean FORCE_RLE = MarlinProperties.isForceRLE(); + static final boolean FORCE_NO_RLE = MarlinProperties.isForceNoRLE(); + // minimum width to try using RLE encoding: + static final int RLE_MIN_WIDTH + = Math.max(BLOCK_SIZE, MarlinProperties.getRLEMinWidth()); }
< prev index next >