src/java.desktop/share/classes/sun/java2d/pipe/AAShapePipe.java

Print this page

        

*** 125,145 **** renderTiles(sg, computeBBox(ux1, uy1, ux2, uy2), aatg, abox); } private static byte[] theTile; ! private synchronized static byte[] getAlphaTile(int len) { byte[] t = theTile; if (t == null || t.length < len) { t = new byte[len]; } else { theTile = null; } return t; } ! private synchronized static void dropAlphaTile(byte[] t) { theTile = t; } public void renderPath(SunGraphics2D sg, Shape s, BasicStroke bs) { boolean adjust = (bs != null && --- 125,145 ---- renderTiles(sg, computeBBox(ux1, uy1, ux2, uy2), aatg, abox); } private static byte[] theTile; ! private static synchronized byte[] getAlphaTile(int len) { byte[] t = theTile; if (t == null || t.length < len) { t = new byte[len]; } else { theTile = null; } return t; } ! private static synchronized void dropAlphaTile(byte[] t) { theTile = t; } public void renderPath(SunGraphics2D sg, Shape s, BasicStroke bs) { boolean adjust = (bs != null &&