1 /* 2 * Copyright (c) 2019, Oracle and/or its affiliates. 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. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle 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 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 26 #ifndef MTLBlitLoops_h_Included 27 #define MTLBlitLoops_h_Included 28 29 #include "sun_java2d_metal_MTLBlitLoops.h" 30 #include "MTLSurfaceDataBase.h" 31 #include "MTLContext.h" 32 33 #define OFFSET_SRCTYPE sun_java2d_metal_MTLBlitLoops_OFFSET_SRCTYPE 34 #define OFFSET_HINT sun_java2d_metal_MTLBlitLoops_OFFSET_HINT 35 #define OFFSET_TEXTURE sun_java2d_metal_MTLBlitLoops_OFFSET_TEXTURE 36 #define OFFSET_RTT sun_java2d_metal_MTLBlitLoops_OFFSET_RTT 37 #define OFFSET_XFORM sun_java2d_metal_MTLBlitLoops_OFFSET_XFORM 38 #define OFFSET_ISOBLIT sun_java2d_metal_MTLBlitLoops_OFFSET_ISOBLIT 39 40 void MTLBlitLoops_IsoBlit(JNIEnv *env, 41 MTLContext *mtlc, jlong pSrcOps, jlong pDstOps, 42 jboolean xform, jint hint, 43 jboolean texture, 44 jint sx1, jint sy1, 45 jint sx2, jint sy2, 46 jdouble dx1, jdouble dy1, 47 jdouble dx2, jdouble dy2); 48 49 void MTLBlitLoops_Blit(JNIEnv *env, 50 MTLContext *mtlc, jlong pSrcOps, jlong pDstOps, 51 jboolean xform, jint hint, 52 jint srctype, jboolean texture, 53 jint sx1, jint sy1, 54 jint sx2, jint sy2, 55 jdouble dx1, jdouble dy1, 56 jdouble dx2, jdouble dy2); 57 58 void MTLBlitLoops_SurfaceToSwBlit(JNIEnv *env, MTLContext *mtlc, 59 jlong pSrcOps, jlong pDstOps, jint dsttype, 60 jint srcx, jint srcy, 61 jint dstx, jint dsty, 62 jint width, jint height); 63 64 void MTLBlitLoops_CopyArea(JNIEnv *env, 65 MTLContext *mtlc, BMTLSDOps *dstOps, 66 jint x, jint y, 67 jint width, jint height, 68 jint dx, jint dy); 69 70 void MTLBlitTex2Tex(MTLContext *mtlc, id<MTLTexture> src, id<MTLTexture> dest); 71 72 void drawTex2Tex(MTLContext *mtlc, 73 id<MTLTexture> src, id<MTLTexture> dst, 74 jboolean isSrcOpaque, jboolean isDstOpaque, jint hint, 75 jint sx1, jint sy1, jint sx2, jint sy2, 76 jdouble dx1, jdouble dy1, jdouble dx2, jdouble dy2); 77 78 #endif /* MTLBlitLoops_h_Included */