Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/native/sun/java2d/d3d/D3DBlitLoops.h
32288 views
/*1* Copyright (c) 2007, 2008, 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*/2425#ifndef D3DBlitLoops_h_Included26#define D3DBlitLoops_h_Included2728#include "sun_java2d_d3d_D3DBlitLoops.h"29#include "D3DSurfaceData.h"30#include "D3DContext.h"3132#define OFFSET_SRCTYPE sun_java2d_d3d_D3DBlitLoops_OFFSET_SRCTYPE33#define OFFSET_HINT sun_java2d_d3d_D3DBlitLoops_OFFSET_HINT34#define OFFSET_TEXTURE sun_java2d_d3d_D3DBlitLoops_OFFSET_TEXTURE35#define OFFSET_RTT sun_java2d_d3d_D3DBlitLoops_OFFSET_RTT36#define OFFSET_XFORM sun_java2d_d3d_D3DBlitLoops_OFFSET_XFORM37#define OFFSET_ISOBLIT sun_java2d_d3d_D3DBlitLoops_OFFSET_ISOBLIT3839D3DPIPELINE_API HRESULT40D3DBlitLoops_IsoBlit(JNIEnv *env,41D3DContext *d3dc, jlong pSrcOps, jlong pDstOps,42jboolean xform, jint hint,43jboolean texture, jboolean rtt,44jint sx1, jint sy1,45jint sx2, jint sy2,46jdouble dx1, jdouble dy1,47jdouble dx2, jdouble dy2);4849D3DPIPELINE_API HRESULT50D3DBL_CopySurfaceToIntArgbImage(IDirect3DSurface9 *pSurface,51SurfaceDataRasInfo *pDstInfo,52jint srcx, jint srcy,53jint srcWidth, jint srcHeight,54jint dstx, jint dsty);5556D3DPIPELINE_API HRESULT57D3DBL_CopyImageToIntXrgbSurface(SurfaceDataRasInfo *pSrcInfo,58int srctype,59D3DResource *pDstSurfaceRes,60jint srcx, jint srcy,61jint srcWidth, jint srcHeight,62jint dstx, jint dsty);6364HRESULT65D3DBlitLoops_Blit(JNIEnv *env,66D3DContext *d3dc, jlong pSrcOps, jlong pDstOps,67jboolean xform, jint hint,68jint srctype, jboolean texture,69jint sx1, jint sy1,70jint sx2, jint sy2,71jdouble dx1, jdouble dy1,72jdouble dx2, jdouble dy2);7374HRESULT75D3DBlitLoops_SurfaceToSwBlit(JNIEnv *env, D3DContext *d3dc,76jlong pSrcOps, jlong pDstOps, jint dsttype,77jint srcx, jint srcy,78jint dstx, jint dsty,79jint width, jint height);8081HRESULT82D3DBlitLoops_CopyArea(JNIEnv *env,83D3DContext *d3dc, D3DSDOps *dstOps,84jint x, jint y,85jint width, jint height,86jint dx, jint dy);8788#endif /* D3DBlitLoops_h_Included */899091