src/java.desktop/share/native/libawt/java2d/loops/ProcessPath.c
branchihse-remove-mapfiles-branch
changeset 56106 40e61db323c2
parent 47216 71c04702a3d5
child 56721 01b558efd286
equal deleted inserted replaced
56105:749e0ffa206f 56106:40e61db323c2
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 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
    26 #include <math.h>
    26 #include <math.h>
    27 #include <assert.h>
    27 #include <assert.h>
    28 #include <stdlib.h>
    28 #include <stdlib.h>
    29 #include <string.h>
    29 #include <string.h>
    30 
    30 
       
    31 #include "jni.h"
    31 #include "j2d_md.h"
    32 #include "j2d_md.h"
    32 #include "java_awt_geom_PathIterator.h"
    33 #include "java_awt_geom_PathIterator.h"
    33 
    34 
    34 #include "ProcessPath.h"
    35 #include "ProcessPath.h"
    35 
    36 
  2175 }
  2176 }
  2176 
  2177 
  2177 static void stubEndSubPath(ProcessHandler* hnd) {
  2178 static void stubEndSubPath(ProcessHandler* hnd) {
  2178 }
  2179 }
  2179 
  2180 
  2180 jboolean doFillPath(DrawHandler* dhnd,
  2181 JNIEXPORT jboolean
       
  2182 doFillPath(DrawHandler* dhnd,
  2181                     jint transX, jint transY,
  2183                     jint transX, jint transY,
  2182                     jfloat* coords, jint maxCoords,
  2184                     jfloat* coords, jint maxCoords,
  2183                     jbyte* types, jint numTypes,
  2185                     jbyte* types, jint numTypes,
  2184                     PHStroke stroke, jint fillRule)
  2186                     PHStroke stroke, jint fillRule)
  2185 {
  2187 {
  2215     FillPolygon(&hnd, fillRule);
  2217     FillPolygon(&hnd, fillRule);
  2216     FD_FREE_POINTS(&fillData);
  2218     FD_FREE_POINTS(&fillData);
  2217     return JNI_TRUE;
  2219     return JNI_TRUE;
  2218 }
  2220 }
  2219 
  2221 
  2220 jboolean doDrawPath(DrawHandler* dhnd,
  2222 JNIEXPORT jboolean
       
  2223 doDrawPath(DrawHandler* dhnd,
  2221                     void (*pProcessEndSubPath)(ProcessHandler*),
  2224                     void (*pProcessEndSubPath)(ProcessHandler*),
  2222                     jint transX, jint transY,
  2225                     jint transX, jint transY,
  2223                     jfloat* coords, jint maxCoords,
  2226                     jfloat* coords, jint maxCoords,
  2224                     jbyte* types, jint numTypes, PHStroke stroke)
  2227                     jbyte* types, jint numTypes, PHStroke stroke)
  2225 {
  2228 {