< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/awt/PrinterSurfaceData.m

Print this page
rev 54096 : 8259651: [macOS] Replace JNF_COCOA_ENTER/EXIT macros
rev 54098 : 8260616: Removing remaining JNF dependencies in the java.desktop module
8259729: Missed JNFInstanceOf -> IsInstanceOf conversion

*** 24,35 **** */ #import "PrinterSurfaceData.h" #import "jni_util.h" - #import <JavaNativeFoundation/JavaNativeFoundation.h> - //#define DEBUG 1 #if defined DEBUG #define PRINT(msg) {fprintf(stderr, "%s\n", msg);} #else --- 24,33 ----
*** 81,91 **** qsdo->FinishSurface = NULL; } JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPrinterSurfaceData_initOps(JNIEnv *env, jobject jthis, jlong nsRef, jobject jGraphicsState, jobjectArray jGraphicsStateObject, jint width, jint height) { ! JNF_COCOA_ENTER(env); PRINT("Java_sun_lwawt_macosx_CPrinterSurfaceData_initOps") PrintSDOps *psdo = (PrintSDOps*)SurfaceData_InitOps(env, jthis, sizeof(PrintSDOps)); if (psdo == NULL) { --- 79,89 ---- qsdo->FinishSurface = NULL; } JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPrinterSurfaceData_initOps(JNIEnv *env, jobject jthis, jlong nsRef, jobject jGraphicsState, jobjectArray jGraphicsStateObject, jint width, jint height) { ! JNI_COCOA_ENTER(env); PRINT("Java_sun_lwawt_macosx_CPrinterSurfaceData_initOps") PrintSDOps *psdo = (PrintSDOps*)SurfaceData_InitOps(env, jthis, sizeof(PrintSDOps)); if (psdo == NULL) {
*** 114,124 **** sdo->GetRasInfo = PrintSD_GetRasInfo; sdo->Release = PrintSD_ReleaseRasInfo; sdo->Setup = NULL; sdo->Dispose = PrintSD_dispose; ! JNF_COCOA_EXIT(env); } static jint PrintSD_Lock(JNIEnv *env, SurfaceDataOps *sdo, SurfaceDataRasInfo *pRasInfo, jint lockflags) { PRINT(" PrintSD_Lock") --- 112,122 ---- sdo->GetRasInfo = PrintSD_GetRasInfo; sdo->Release = PrintSD_ReleaseRasInfo; sdo->Setup = NULL; sdo->Dispose = PrintSD_dispose; ! JNI_COCOA_EXIT(env); } static jint PrintSD_Lock(JNIEnv *env, SurfaceDataOps *sdo, SurfaceDataRasInfo *pRasInfo, jint lockflags) { PRINT(" PrintSD_Lock")
< prev index next >