Java Code Examples for sun.java2d.ReentrantContextProvider#REF_WEAK
The following examples show how to use
sun.java2d.ReentrantContextProvider#REF_WEAK .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MarlinRenderingEngine.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private static void logSettings(final String reClass) { // log information at startup if (settingsLogged) { return; } settingsLogged = true; String refType; switch (REF_TYPE) { default: case ReentrantContextProvider.REF_HARD: refType = "hard"; break; case ReentrantContextProvider.REF_SOFT: refType = "soft"; break; case ReentrantContextProvider.REF_WEAK: refType = "weak"; break; } logInfo("==========================================================" + "====================="); logInfo("Marlin software rasterizer = ENABLED"); logInfo("Version = [" + Version.getVersion() + "]"); logInfo("sun.java2d.renderer = " + reClass); logInfo("sun.java2d.renderer.useThreadLocal = " + useThreadLocal); logInfo("sun.java2d.renderer.useRef = " + refType); logInfo("sun.java2d.renderer.pixelsize = " + MarlinConst.INITIAL_PIXEL_DIM); logInfo("sun.java2d.renderer.subPixel_log2_X = " + MarlinConst.SUBPIXEL_LG_POSITIONS_X); logInfo("sun.java2d.renderer.subPixel_log2_Y = " + MarlinConst.SUBPIXEL_LG_POSITIONS_Y); logInfo("sun.java2d.renderer.tileSize_log2 = " + MarlinConst.TILE_SIZE_LG); logInfo("sun.java2d.renderer.blockSize_log2 = " + MarlinConst.BLOCK_SIZE_LG); logInfo("sun.java2d.renderer.blockSize_log2 = " + MarlinConst.BLOCK_SIZE_LG); // RLE / blockFlags settings logInfo("sun.java2d.renderer.forceRLE = " + MarlinProperties.isForceRLE()); logInfo("sun.java2d.renderer.forceNoRLE = " + MarlinProperties.isForceNoRLE()); logInfo("sun.java2d.renderer.useTileFlags = " + MarlinProperties.isUseTileFlags()); logInfo("sun.java2d.renderer.useTileFlags.useHeuristics = " + MarlinProperties.isUseTileFlagsWithHeuristics()); logInfo("sun.java2d.renderer.rleMinWidth = " + MarlinCache.RLE_MIN_WIDTH); // optimisation parameters logInfo("sun.java2d.renderer.useSimplifier = " + MarlinConst.useSimplifier); // debugging parameters logInfo("sun.java2d.renderer.doStats = " + MarlinConst.doStats); logInfo("sun.java2d.renderer.doMonitors = " + MarlinConst.doMonitors); logInfo("sun.java2d.renderer.doChecks = " + MarlinConst.doChecks); // logging parameters logInfo("sun.java2d.renderer.useLogger = " + MarlinConst.useLogger); logInfo("sun.java2d.renderer.logCreateContext = " + MarlinConst.logCreateContext); logInfo("sun.java2d.renderer.logUnsafeMalloc = " + MarlinConst.logUnsafeMalloc); // quality settings logInfo("Renderer settings:"); logInfo("CUB_COUNT_LG = " + Renderer.CUB_COUNT_LG); logInfo("CUB_DEC_BND = " + Renderer.CUB_DEC_BND); logInfo("CUB_INC_BND = " + Renderer.CUB_INC_BND); logInfo("QUAD_DEC_BND = " + Renderer.QUAD_DEC_BND); logInfo("==========================================================" + "====================="); }
Example 2
Source File: MarlinRenderingEngine.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private static void logSettings(final String reClass) { // log information at startup if (SETTINGS_LOGGED) { return; } SETTINGS_LOGGED = true; String refType; switch (REF_TYPE) { default: case ReentrantContextProvider.REF_HARD: refType = "hard"; break; case ReentrantContextProvider.REF_SOFT: refType = "soft"; break; case ReentrantContextProvider.REF_WEAK: refType = "weak"; break; } logInfo("==========================================================" + "====================="); logInfo("Marlin software rasterizer = ENABLED"); logInfo("Version = [" + Version.getVersion() + "]"); logInfo("sun.java2d.renderer = " + reClass); logInfo("sun.java2d.renderer.useThreadLocal = " + USE_THREAD_LOCAL); logInfo("sun.java2d.renderer.useRef = " + refType); logInfo("sun.java2d.renderer.edges = " + MarlinConst.INITIAL_EDGES_COUNT); logInfo("sun.java2d.renderer.pixelsize = " + MarlinConst.INITIAL_PIXEL_DIM); logInfo("sun.java2d.renderer.subPixel_log2_X = " + MarlinConst.SUBPIXEL_LG_POSITIONS_X); logInfo("sun.java2d.renderer.subPixel_log2_Y = " + MarlinConst.SUBPIXEL_LG_POSITIONS_Y); logInfo("sun.java2d.renderer.tileSize_log2 = " + MarlinConst.TILE_SIZE_LG); logInfo("sun.java2d.renderer.blockSize_log2 = " + MarlinConst.BLOCK_SIZE_LG); logInfo("sun.java2d.renderer.blockSize_log2 = " + MarlinConst.BLOCK_SIZE_LG); // RLE / blockFlags settings logInfo("sun.java2d.renderer.forceRLE = " + MarlinProperties.isForceRLE()); logInfo("sun.java2d.renderer.forceNoRLE = " + MarlinProperties.isForceNoRLE()); logInfo("sun.java2d.renderer.useTileFlags = " + MarlinProperties.isUseTileFlags()); logInfo("sun.java2d.renderer.useTileFlags.useHeuristics = " + MarlinProperties.isUseTileFlagsWithHeuristics()); logInfo("sun.java2d.renderer.rleMinWidth = " + MarlinCache.RLE_MIN_WIDTH); // optimisation parameters logInfo("sun.java2d.renderer.useSimplifier = " + MarlinConst.USE_SIMPLIFIER); // debugging parameters logInfo("sun.java2d.renderer.doStats = " + MarlinConst.DO_STATS); logInfo("sun.java2d.renderer.doMonitors = " + MarlinConst.DO_MONITORS); logInfo("sun.java2d.renderer.doChecks = " + MarlinConst.DO_CHECKS); // logging parameters logInfo("sun.java2d.renderer.useLogger = " + MarlinConst.USE_LOGGER); logInfo("sun.java2d.renderer.logCreateContext = " + MarlinConst.LOG_CREATE_CONTEXT); logInfo("sun.java2d.renderer.logUnsafeMalloc = " + MarlinConst.LOG_UNSAFE_MALLOC); // quality settings logInfo("Renderer settings:"); logInfo("CUB_COUNT_LG = " + Renderer.CUB_COUNT_LG); logInfo("CUB_DEC_BND = " + Renderer.CUB_DEC_BND); logInfo("CUB_INC_BND = " + Renderer.CUB_INC_BND); logInfo("QUAD_DEC_BND = " + Renderer.QUAD_DEC_BND); logInfo("INITIAL_EDGES_CAPACITY = " + MarlinConst.INITIAL_EDGES_CAPACITY); logInfo("INITIAL_CROSSING_COUNT = " + Renderer.INITIAL_CROSSING_COUNT); logInfo("==========================================================" + "====================="); }