private static class CachingShapeRepState.MaskCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<CachingShapeRepState.CacheEntry> |
comparator |
private CachingShapeRepState.CacheEntry[] |
entries |
private int |
entriesSize |
private static int |
MAX_MASK_DIM |
private static int |
MAX_SIZE_IN_PIXELS |
private CachingShapeRepState.CacheEntry |
tmpKey |
private int |
totalPixels |
Modifier | Constructor and Description |
---|---|
private |
MaskCache() |
Modifier and Type | Method and Description |
---|---|
private void |
addEntry(CachingShapeRepState.CacheEntry entry) |
private void |
ensureSize(int size) |
(package private) boolean |
entryMatches(CachingShapeRepState.CacheEntry entry,
Shape shape,
BasicStroke stroke,
BaseTransform xform,
boolean antialiasedShape) |
(package private) void |
get(BaseShaderContext context,
CachingShapeRepState.MaskTexData texData,
Shape shape,
BasicStroke stroke,
BaseTransform xform,
RectBounds xformBounds,
boolean xformBoundsIsACopy,
boolean antialiasedShape) |
(package private) boolean |
hasRoom(RectBounds xformBounds) |
private void |
removeEntry(CachingShapeRepState.CacheEntry entry) |
(package private) void |
unref(CachingShapeRepState.MaskTexData texData) |
private static final int MAX_MASK_DIM
private static final int MAX_SIZE_IN_PIXELS
private static java.util.Comparator<CachingShapeRepState.CacheEntry> comparator
private CachingShapeRepState.CacheEntry[] entries
private int entriesSize
private int totalPixels
private CachingShapeRepState.CacheEntry tmpKey
private void ensureSize(int size)
private void addEntry(CachingShapeRepState.CacheEntry entry)
private void removeEntry(CachingShapeRepState.CacheEntry entry)
boolean hasRoom(RectBounds xformBounds)
boolean entryMatches(CachingShapeRepState.CacheEntry entry, Shape shape, BasicStroke stroke, BaseTransform xform, boolean antialiasedShape)
void get(BaseShaderContext context, CachingShapeRepState.MaskTexData texData, Shape shape, BasicStroke stroke, BaseTransform xform, RectBounds xformBounds, boolean xformBoundsIsACopy, boolean antialiasedShape)
void unref(CachingShapeRepState.MaskTexData texData)