0N/A/*
2362N/A * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.java2d.pipe;
0N/A
0N/Apublic class BufferedOpCodes {
0N/A // draw ops
0N/A public static final int DRAW_LINE = 10;
0N/A public static final int DRAW_RECT = 11;
0N/A public static final int DRAW_POLY = 12;
0N/A public static final int DRAW_PIXEL = 13;
0N/A public static final int DRAW_SCANLINES = 14;
430N/A public static final int DRAW_PARALLELOGRAM = 15;
430N/A public static final int DRAW_AAPARALLELOGRAM = 16;
0N/A
0N/A // fill ops
0N/A public static final int FILL_RECT = 20;
0N/A public static final int FILL_SPANS = 21;
430N/A public static final int FILL_PARALLELOGRAM = 22;
430N/A public static final int FILL_AAPARALLELOGRAM = 23;
0N/A
0N/A // copy-related ops
0N/A public static final int COPY_AREA = 30;
0N/A public static final int BLIT = 31;
0N/A public static final int MASK_FILL = 32;
0N/A public static final int MASK_BLIT = 33;
0N/A public static final int SURFACE_TO_SW_BLIT = 34;
0N/A
0N/A // text-related ops
0N/A public static final int DRAW_GLYPH_LIST = 40;
0N/A
0N/A // state-related ops
0N/A public static final int SET_RECT_CLIP = 51;
0N/A public static final int BEGIN_SHAPE_CLIP = 52;
0N/A public static final int SET_SHAPE_CLIP_SPANS = 53;
0N/A public static final int END_SHAPE_CLIP = 54;
0N/A public static final int RESET_CLIP = 55;
0N/A public static final int SET_ALPHA_COMPOSITE = 56;
0N/A public static final int SET_XOR_COMPOSITE = 57;
0N/A public static final int RESET_COMPOSITE = 58;
0N/A public static final int SET_TRANSFORM = 59;
0N/A public static final int RESET_TRANSFORM = 60;
0N/A
0N/A // context-related ops
0N/A public static final int SET_SURFACES = 70;
0N/A public static final int SET_SCRATCH_SURFACE = 71;
0N/A public static final int FLUSH_SURFACE = 72;
0N/A public static final int DISPOSE_SURFACE = 73;
0N/A public static final int DISPOSE_CONFIG = 74;
0N/A public static final int INVALIDATE_CONTEXT = 75;
0N/A public static final int SYNC = 76;
430N/A public static final int RESTORE_DEVICES = 77;
430N/A public static final int SAVE_STATE = 78;
430N/A public static final int RESTORE_STATE = 79;
0N/A
0N/A // multibuffering ops
0N/A public static final int SWAP_BUFFERS = 80;
0N/A
0N/A // special no-op op code (mainly used for achieving 8-byte alignment)
0N/A public static final int NOOP = 90;
0N/A
0N/A // paint-related ops
0N/A public static final int RESET_PAINT = 100;
0N/A public static final int SET_COLOR = 101;
0N/A public static final int SET_GRADIENT_PAINT = 102;
0N/A public static final int SET_LINEAR_GRADIENT_PAINT = 103;
0N/A public static final int SET_RADIAL_GRADIENT_PAINT = 104;
0N/A public static final int SET_TEXTURE_PAINT = 105;
0N/A
0N/A // BufferedImageOp-related ops
0N/A public static final int ENABLE_CONVOLVE_OP = 120;
0N/A public static final int DISABLE_CONVOLVE_OP = 121;
0N/A public static final int ENABLE_RESCALE_OP = 122;
0N/A public static final int DISABLE_RESCALE_OP = 123;
0N/A public static final int ENABLE_LOOKUP_OP = 124;
0N/A public static final int DISABLE_LOOKUP_OP = 125;
0N/A}