< prev index next >

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

Print this page




  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package sun.java2d.pipe;
  26 
  27 import java.awt.BasicStroke;
  28 import java.awt.Rectangle;
  29 import java.awt.Shape;
  30 import java.awt.geom.Rectangle2D;
  31 import java.util.concurrent.ConcurrentLinkedQueue;
  32 import sun.awt.SunHints;
  33 import sun.java2d.ReentrantContext;
  34 import sun.java2d.ReentrantContextProvider;
  35 import sun.java2d.ReentrantContextProviderTL;
  36 import sun.java2d.SunGraphics2D;
  37 
  38 /**
  39  * This class is used to convert raw geometry into 8-bit alpha tiles
  40  * using an AATileGenerator for application by the next stage of
  41  * the pipeline.
  42  * This class sets up the Generator and computes the alpha tiles
  43  * and then passes them on to a CompositePipe object for painting.
  44  */
  45 public final class AAShapePipe
  46     implements ShapeDrawPipe, ParallelogramPipe
  47 {
  48     static final RenderingEngine renderengine = RenderingEngine.getInstance();
  49 
  50     // Per-thread TileState (~1K very small so do not use any Weak Reference)
  51     private static final ReentrantContextProvider<TileState> tileStateProvider =




  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package sun.java2d.pipe;
  26 
  27 import java.awt.BasicStroke;
  28 import java.awt.Rectangle;
  29 import java.awt.Shape;
  30 import java.awt.geom.Rectangle2D;

  31 import sun.awt.SunHints;
  32 import sun.java2d.ReentrantContext;
  33 import sun.java2d.ReentrantContextProvider;
  34 import sun.java2d.ReentrantContextProviderTL;
  35 import sun.java2d.SunGraphics2D;
  36 
  37 /**
  38  * This class is used to convert raw geometry into 8-bit alpha tiles
  39  * using an AATileGenerator for application by the next stage of
  40  * the pipeline.
  41  * This class sets up the Generator and computes the alpha tiles
  42  * and then passes them on to a CompositePipe object for painting.
  43  */
  44 public final class AAShapePipe
  45     implements ShapeDrawPipe, ParallelogramPipe
  46 {
  47     static final RenderingEngine renderengine = RenderingEngine.getInstance();
  48 
  49     // Per-thread TileState (~1K very small so do not use any Weak Reference)
  50     private static final ReentrantContextProvider<TileState> tileStateProvider =


< prev index next >