sun.java2d.marlin.ArrayCacheConst.CacheStats Java Examples
The following examples show how to use
sun.java2d.marlin.ArrayCacheConst.CacheStats.
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: DRendererContext.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Constructor * * @param name context name (debugging) */ DRendererContext(final String name) { if (LOG_CREATE_CONTEXT) { MarlinUtils.logInfo("new RendererContext = " + name); } this.cleanerObj = new Object(); // create first stats (needed by newOffHeapArray): if (DO_STATS || DO_MONITORS) { stats = RendererStats.createInstance(cleanerObj, name); // push cache stats: stats.cacheStats = new CacheStats[] { cleanIntCache.stats, dirtyIntCache.stats, dirtyDoubleCache.stats, dirtyByteCache.stats }; } else { stats = null; } // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(double6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(double6); // curve monotonizer & clip subdivider (before transformerPC2D init) monotonizer = new CurveBasicMonotonizer(this); curveClipSplitter = new CurveClipSplitter(this); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new DTransformingPathConsumer2D(this); // Renderer: cache = new MarlinCache(this); renderer = new DRenderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(stats, renderer, cache); stroker = new DStroker(this); dasher = new DDasher(this); }
Example #2
Source File: RendererContext.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Constructor * * @param name context name (debugging) */ RendererContext(final String name) { if (LOG_CREATE_CONTEXT) { MarlinUtils.logInfo("new RendererContext = " + name); } this.cleanerObj = new Object(); // create first stats (needed by newOffHeapArray): if (DO_STATS || DO_MONITORS) { stats = RendererStats.createInstance(cleanerObj, name); // push cache stats: stats.cacheStats = new CacheStats[] { cleanIntCache.stats, dirtyIntCache.stats, dirtyFloatCache.stats, dirtyByteCache.stats }; } else { stats = null; } // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(float6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(float6); // curve monotonizer & clip subdivider (before transformerPC2D init) monotonizer = new CurveBasicMonotonizer(this); curveClipSplitter = new CurveClipSplitter(this); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new TransformingPathConsumer2D(this); // Renderer: cache = new MarlinCache(this); renderer = new Renderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(stats, renderer, cache); stroker = new Stroker(this); dasher = new Dasher(this); }
Example #3
Source File: RendererContext.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructor * * @param name context name (debugging) */ RendererContext(final String name) { if (LOG_CREATE_CONTEXT) { MarlinUtils.logInfo("new RendererContext = " + name); } this.cleanerObj = new Object(); // create first stats (needed by newOffHeapArray): if (DO_STATS || DO_MONITORS) { stats = RendererStats.createInstance(cleanerObj, name); // push cache stats: stats.cacheStats = new CacheStats[] { cleanIntCache.stats, dirtyIntCache.stats, dirtyFloatCache.stats, dirtyByteCache.stats }; } else { stats = null; } // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(float6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(float6); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new TransformingPathConsumer2D(); // Renderer: cache = new MarlinCache(this); renderer = new Renderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(renderer); stroker = new Stroker(this); dasher = new Dasher(this); }
Example #4
Source File: DRendererContext.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Constructor * * @param name context name (debugging) */ DRendererContext(final String name) { if (LOG_CREATE_CONTEXT) { MarlinUtils.logInfo("new RendererContext = " + name); } this.cleanerObj = new Object(); // create first stats (needed by newOffHeapArray): if (DO_STATS || DO_MONITORS) { stats = RendererStats.createInstance(cleanerObj, name); // push cache stats: stats.cacheStats = new CacheStats[] { cleanIntCache.stats, dirtyIntCache.stats, dirtyDoubleCache.stats, dirtyByteCache.stats }; } else { stats = null; } // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(double6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(double6); // curve monotonizer & clip subdivider (before transformerPC2D init) monotonizer = new CurveBasicMonotonizer(this); curveClipSplitter = new CurveClipSplitter(this); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new DTransformingPathConsumer2D(this); // Renderer: cache = new MarlinCache(this); renderer = new DRenderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(stats, renderer, cache); stroker = new DStroker(this); dasher = new DDasher(this); }
Example #5
Source File: RendererContext.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Constructor * * @param name context name (debugging) */ RendererContext(final String name) { if (LOG_CREATE_CONTEXT) { MarlinUtils.logInfo("new RendererContext = " + name); } this.cleanerObj = new Object(); // create first stats (needed by newOffHeapArray): if (DO_STATS || DO_MONITORS) { stats = RendererStats.createInstance(cleanerObj, name); // push cache stats: stats.cacheStats = new CacheStats[] { cleanIntCache.stats, dirtyIntCache.stats, dirtyFloatCache.stats, dirtyByteCache.stats }; } else { stats = null; } // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(float6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(float6); // curve monotonizer & clip subdivider (before transformerPC2D init) monotonizer = new CurveBasicMonotonizer(this); curveClipSplitter = new CurveClipSplitter(this); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new TransformingPathConsumer2D(this); // Renderer: cache = new MarlinCache(this); renderer = new Renderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(stats, renderer, cache); stroker = new Stroker(this); dasher = new Dasher(this); }
Example #6
Source File: ByteArrayCache.java From Bytecoder with Apache License 2.0 | 4 votes |
ByteArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "ByteArrayCache") : null; }
Example #7
Source File: IntArrayCache.java From Bytecoder with Apache License 2.0 | 4 votes |
IntArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "IntArrayCache") : null; }
Example #8
Source File: FloatArrayCache.java From Bytecoder with Apache License 2.0 | 4 votes |
FloatArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "FloatArrayCache") : null; }
Example #9
Source File: DoubleArrayCache.java From Bytecoder with Apache License 2.0 | 4 votes |
DoubleArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "DoubleArrayCache") : null; }
Example #10
Source File: ByteArrayCache.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
ByteArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "ByteArrayCache") : null; }
Example #11
Source File: IntArrayCache.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
IntArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "IntArrayCache") : null; }
Example #12
Source File: FloatArrayCache.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
FloatArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "FloatArrayCache") : null; }
Example #13
Source File: ByteArrayCache.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
ByteArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "ByteArrayCache") : null; }
Example #14
Source File: IntArrayCache.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
IntArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "IntArrayCache") : null; }
Example #15
Source File: FloatArrayCache.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
FloatArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "FloatArrayCache") : null; }
Example #16
Source File: DoubleArrayCache.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
DoubleArrayCache(final boolean clean, final int bucketCapacity) { this.clean = clean; this.bucketCapacity = bucketCapacity; this.stats = (DO_STATS) ? new CacheStats(getLogPrefix(clean) + "DoubleArrayCache") : null; }