Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/windows/native/sun/java2d/d3d/D3DSurfaceData.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 _D3DSURFACEDATA_H_26#define _D3DSURFACEDATA_H_2728#include "java_awt_image_AffineTransformOp.h"29#include "sun_java2d_d3d_D3DSurfaceData.h"30#include "sun_java2d_pipe_hw_AccelSurface.h"31#include "SurfaceData.h"32#include <d3d9.h>3334typedef struct _D3DSDOps D3DSDOps;3536class D3DResource;3738struct _D3DSDOps {39SurfaceDataOps sdOps;4041// the ordinal of the d3d adapter this surface belongs to42// (may be different from GDI display number)43jint adapter;44jint width, height;4546// backbuffer-related data47jint xoff, yoff;48D3DSWAPEFFECT swapEffect;4950D3DResource *pResource;51};5253#define UNDEFINED sun_java2d_pipe_hw_AccelSurface_UNDEFINED54#define RT_PLAIN sun_java2d_pipe_hw_AccelSurface_RT_PLAIN55#define TEXTURE sun_java2d_pipe_hw_AccelSurface_TEXTURE56#define RT_TEXTURE sun_java2d_pipe_hw_AccelSurface_RT_TEXTURE57#define FLIP_BACKBUFFER sun_java2d_pipe_hw_AccelSurface_FLIP_BACKBUFFER58#define D3D_DEVICE_RESOURCE \59sun_java2d_d3d_D3DSurfaceData_D3D_DEVICE_RESOURCE6061#define ST_INT_ARGB sun_java2d_d3d_D3DSurfaceData_ST_INT_ARGB62#define ST_INT_ARGB_PRE sun_java2d_d3d_D3DSurfaceData_ST_INT_ARGB_PRE63#define ST_INT_ARGB_BM sun_java2d_d3d_D3DSurfaceData_ST_INT_ARGB_BM64#define ST_INT_RGB sun_java2d_d3d_D3DSurfaceData_ST_INT_RGB65#define ST_INT_BGR sun_java2d_d3d_D3DSurfaceData_ST_INT_BGR66#define ST_USHORT_565_RGB sun_java2d_d3d_D3DSurfaceData_ST_USHORT_565_RGB67#define ST_USHORT_555_RGB sun_java2d_d3d_D3DSurfaceData_ST_USHORT_555_RGB68#define ST_BYTE_INDEXED sun_java2d_d3d_D3DSurfaceData_ST_BYTE_INDEXED69#define ST_BYTE_INDEXED_BM sun_java2d_d3d_D3DSurfaceData_ST_BYTE_INDEXED_BM70#define ST_3BYTE_BGR sun_java2d_d3d_D3DSurfaceData_ST_3BYTE_BGR7172/**73* These are defined to be the same as ExtendedBufferCapabilities.VSyncType74* enum.75*/76#define VSYNC_DEFAULT 077#define VSYNC_ON 178#define VSYNC_OFF 27980/**81* These are shorthand names for the filtering method constants used by82* image transform methods.83*/84#define D3DSD_XFORM_DEFAULT 085#define D3DSD_XFORM_NEAREST_NEIGHBOR \86java_awt_image_AffineTransformOp_TYPE_NEAREST_NEIGHBOR87#define D3DSD_XFORM_BILINEAR \88java_awt_image_AffineTransformOp_TYPE_BILINEAR8990void D3DSD_Flush(void *pData);91void D3DSD_MarkLost(void *pData);9293#endif /* _D3DSURFACEDATA_H_ */949596