Print this page
Added gradle and cmake project

@@ -73,10 +73,11 @@
 JNIEXPORT jfieldID path2DNumTypesID;
 JNIEXPORT jfieldID path2DWindingRuleID;
 JNIEXPORT jfieldID path2DFloatCoordsID;
 JNIEXPORT jfieldID sg2dStrokeHintID;
 JNIEXPORT jint sunHints_INTVAL_STROKE_PURE;
+JNIEXPORT jint graphicsPrimitive_traceflags = 0;
 
 /*
  * Class:     sun_java2d_loops_GraphicsPrimitiveMgr
  * Method:    initIDs
  * Signature: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)V

@@ -146,10 +147,17 @@
     CHECK_NULL(fid =
         (*env)->GetStaticFieldID(env, SHints, "INTVAL_STROKE_PURE", "I"));
     sunHints_INTVAL_STROKE_PURE = (*env)->GetStaticIntField(env, SHints, fid);
 }
 
+JNIEXPORT void JNICALL
+Java_sun_java2d_loops_GraphicsPrimitiveMgr_setTraceFlags
+    (JNIEnv *env, jclass GPMgr, jint traceflags)
+{
+    graphicsPrimitive_traceflags = traceflags;
+}
+
 void GrPrim_RefineBounds(SurfaceDataBounds *bounds, jint transX, jint transY,
                          jfloat *coords,  jint maxCoords)
 {
     jint xmin, ymin, xmax, ymax;
     if (maxCoords > 1) {