Path: blob/master/src/java.desktop/share/classes/sun/java2d/pipe/BufferedOpCodes.java
41159 views
/*1* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package sun.java2d.pipe;2627import java.lang.annotation.Native;2829public final class BufferedOpCodes {30// draw ops31@Native public static final int DRAW_LINE = 10;32@Native public static final int DRAW_RECT = 11;33@Native public static final int DRAW_POLY = 12;34@Native public static final int DRAW_PIXEL = 13;35@Native public static final int DRAW_SCANLINES = 14;36@Native public static final int DRAW_PARALLELOGRAM = 15;37@Native public static final int DRAW_AAPARALLELOGRAM = 16;3839// fill ops40@Native public static final int FILL_RECT = 20;41@Native public static final int FILL_SPANS = 21;42@Native public static final int FILL_PARALLELOGRAM = 22;43@Native public static final int FILL_AAPARALLELOGRAM = 23;4445// copy-related ops46@Native public static final int COPY_AREA = 30;47@Native public static final int BLIT = 31;48@Native public static final int MASK_FILL = 32;49@Native public static final int MASK_BLIT = 33;50@Native public static final int SURFACE_TO_SW_BLIT = 34;5152// text-related ops53@Native public static final int DRAW_GLYPH_LIST = 40;5455// state-related ops56@Native public static final int SET_RECT_CLIP = 51;57@Native public static final int BEGIN_SHAPE_CLIP = 52;58@Native public static final int SET_SHAPE_CLIP_SPANS = 53;59@Native public static final int END_SHAPE_CLIP = 54;60@Native public static final int RESET_CLIP = 55;61@Native public static final int SET_ALPHA_COMPOSITE = 56;62@Native public static final int SET_XOR_COMPOSITE = 57;63@Native public static final int RESET_COMPOSITE = 58;64@Native public static final int SET_TRANSFORM = 59;65@Native public static final int RESET_TRANSFORM = 60;6667// context-related ops68@Native public static final int SET_SURFACES = 70;69@Native public static final int SET_SCRATCH_SURFACE = 71;70@Native public static final int FLUSH_SURFACE = 72;71@Native public static final int DISPOSE_SURFACE = 73;72@Native public static final int DISPOSE_CONFIG = 74;73@Native public static final int INVALIDATE_CONTEXT = 75;74@Native public static final int SYNC = 76;75@Native public static final int RESTORE_DEVICES = 77;7677// multibuffering ops78@Native public static final int SWAP_BUFFERS = 80;7980// special no-op op code (mainly used for achieving 8-byte alignment)81@Native public static final int NOOP = 90;8283// paint-related ops84@Native public static final int RESET_PAINT = 100;85@Native public static final int SET_COLOR = 101;86@Native public static final int SET_GRADIENT_PAINT = 102;87@Native public static final int SET_LINEAR_GRADIENT_PAINT = 103;88@Native public static final int SET_RADIAL_GRADIENT_PAINT = 104;89@Native public static final int SET_TEXTURE_PAINT = 105;9091// BufferedImageOp-related ops92@Native public static final int ENABLE_CONVOLVE_OP = 120;93@Native public static final int DISABLE_CONVOLVE_OP = 121;94@Native public static final int ENABLE_RESCALE_OP = 122;95@Native public static final int DISABLE_RESCALE_OP = 123;96@Native public static final int ENABLE_LOOKUP_OP = 124;97@Native public static final int DISABLE_LOOKUP_OP = 125;98}99100101