src/java.desktop/share/native/libawt/java2d/loops/GraphicsPrimitiveMgr.h
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 58626 a9ed3d93cca3
equal deleted inserted replaced
49439:bf53d82a51e5 49440:396ea30afbd5
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    29 #ifdef __cplusplus
    29 #ifdef __cplusplus
    30 extern "C" {
    30 extern "C" {
    31 #endif
    31 #endif
    32 
    32 
    33 #include <stddef.h>
    33 #include <stddef.h>
       
    34 #include "jni.h"
    34 
    35 
    35 #include "java_awt_AlphaComposite.h"
    36 #include "java_awt_AlphaComposite.h"
    36 
    37 
    37 #include "SurfaceData.h"
    38 #include "SurfaceData.h"
    38 #include "SpanIterator.h"
    39 #include "SpanIterator.h"
   549 Transform_transform(TransformInfo *pTxInfo, jdouble *pX, jdouble *pY);
   550 Transform_transform(TransformInfo *pTxInfo, jdouble *pX, jdouble *pY);
   550 
   551 
   551 void GrPrim_RefineBounds(SurfaceDataBounds *bounds, jint transX, jint transY,
   552 void GrPrim_RefineBounds(SurfaceDataBounds *bounds, jint transX, jint transY,
   552                          jfloat *coords,  jint maxCoords);
   553                          jfloat *coords,  jint maxCoords);
   553 
   554 
   554 extern jfieldID path2DTypesID;
   555 JNIEXPORT extern jfieldID path2DTypesID;
   555 extern jfieldID path2DNumTypesID;
   556 JNIEXPORT extern jfieldID path2DNumTypesID;
   556 extern jfieldID path2DWindingRuleID;
   557 JNIEXPORT extern jfieldID path2DWindingRuleID;
   557 extern jfieldID path2DFloatCoordsID;
   558 JNIEXPORT extern jfieldID path2DFloatCoordsID;
   558 extern jfieldID sg2dStrokeHintID;
   559 JNIEXPORT extern jfieldID sg2dStrokeHintID;
   559 extern jint sunHints_INTVAL_STROKE_PURE;
   560 JNIEXPORT extern jint sunHints_INTVAL_STROKE_PURE;
   560 
   561 
   561 /*
   562 /*
   562  * Macros for using jlong variables as 32bits.32bits fractional values
   563  * Macros for using jlong variables as 32bits.32bits fractional values
   563  */
   564  */
   564 #define LongOneHalf     (((jlong) 1) << 31)
   565 #define LongOneHalf     (((jlong) 1) << 31)