J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved. |
| 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License version 2 only, as |
| 7 | * published by the Free Software Foundation. Sun designates this |
| 8 | * particular file as subject to the "Classpath" exception as provided |
| 9 | * by Sun in the LICENSE file that accompanied this code. |
| 10 | * |
| 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 22 | * CA 95054 USA or visit www.sun.com if you need additional information or |
| 23 | * have any questions. |
| 24 | */ |
| 25 | |
| 26 | package sun.java2d.pipe; |
| 27 | |
| 28 | public class BufferedOpCodes { |
| 29 | // draw ops |
| 30 | public static final int DRAW_LINE = 10; |
| 31 | public static final int DRAW_RECT = 11; |
| 32 | public static final int DRAW_POLY = 12; |
| 33 | public static final int DRAW_PIXEL = 13; |
| 34 | public static final int DRAW_SCANLINES = 14; |
| 35 | |
| 36 | // fill ops |
| 37 | public static final int FILL_RECT = 20; |
| 38 | public static final int FILL_SPANS = 21; |
| 39 | |
| 40 | // copy-related ops |
| 41 | public static final int COPY_AREA = 30; |
| 42 | public static final int BLIT = 31; |
| 43 | public static final int MASK_FILL = 32; |
| 44 | public static final int MASK_BLIT = 33; |
| 45 | public static final int SURFACE_TO_SW_BLIT = 34; |
| 46 | |
| 47 | // text-related ops |
| 48 | public static final int DRAW_GLYPH_LIST = 40; |
| 49 | |
| 50 | // state-related ops |
| 51 | public static final int SET_RECT_CLIP = 51; |
| 52 | public static final int BEGIN_SHAPE_CLIP = 52; |
| 53 | public static final int SET_SHAPE_CLIP_SPANS = 53; |
| 54 | public static final int END_SHAPE_CLIP = 54; |
| 55 | public static final int RESET_CLIP = 55; |
| 56 | public static final int SET_ALPHA_COMPOSITE = 56; |
| 57 | public static final int SET_XOR_COMPOSITE = 57; |
| 58 | public static final int RESET_COMPOSITE = 58; |
| 59 | public static final int SET_TRANSFORM = 59; |
| 60 | public static final int RESET_TRANSFORM = 60; |
| 61 | |
| 62 | // context-related ops |
| 63 | public static final int SET_SURFACES = 70; |
| 64 | public static final int SET_SCRATCH_SURFACE = 71; |
| 65 | public static final int FLUSH_SURFACE = 72; |
| 66 | public static final int DISPOSE_SURFACE = 73; |
| 67 | public static final int DISPOSE_CONFIG = 74; |
| 68 | public static final int INVALIDATE_CONTEXT = 75; |
| 69 | public static final int SYNC = 76; |
| 70 | |
| 71 | // multibuffering ops |
| 72 | public static final int SWAP_BUFFERS = 80; |
| 73 | |
| 74 | // special no-op op code (mainly used for achieving 8-byte alignment) |
| 75 | public static final int NOOP = 90; |
| 76 | |
| 77 | // paint-related ops |
| 78 | public static final int RESET_PAINT = 100; |
| 79 | public static final int SET_COLOR = 101; |
| 80 | public static final int SET_GRADIENT_PAINT = 102; |
| 81 | public static final int SET_LINEAR_GRADIENT_PAINT = 103; |
| 82 | public static final int SET_RADIAL_GRADIENT_PAINT = 104; |
| 83 | public static final int SET_TEXTURE_PAINT = 105; |
| 84 | |
| 85 | // BufferedImageOp-related ops |
| 86 | public static final int ENABLE_CONVOLVE_OP = 120; |
| 87 | public static final int DISABLE_CONVOLVE_OP = 121; |
| 88 | public static final int ENABLE_RESCALE_OP = 122; |
| 89 | public static final int DISABLE_RESCALE_OP = 123; |
| 90 | public static final int ENABLE_LOOKUP_OP = 124; |
| 91 | public static final int DISABLE_LOOKUP_OP = 125; |
| 92 | } |