Skip to content
This repository has been archived by the owner. It is now read-only.

8252954: Lanai : java/awt/datatransfer/DataFlavor/DataFlavorRemoteTest.java fails #128

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -54,7 +54,8 @@ -(NSMutableString *) parseString : (id) complexString;
//#define IM_DEBUG TRUE
//#define EXTRA_DEBUG

#define METAL_DEBUG
// Uncomment this line to see Metal specific fprintfs
//#define METAL_DEBUG

static BOOL shouldUsePressAndHold() {
static int shouldUsePressAndHold = -1;
@@ -38,6 +38,9 @@
#pragma mark -
#pragma mark "--- Mac OS X specific methods for GL pipeline ---"

// Uncomment this line to see Metal specific fprintfs
//#define METAL_DEBUG

/**
* Disposes all memory and resources associated with the given
* CGLGraphicsConfigInfo (including its native MTLContext data).
@@ -76,6 +79,7 @@
{
J2dRlsTraceLn(J2D_TRACE_INFO, "MTLGraphicsConfig_initMTL");

#ifdef METAL_DEBUG
FILE *f = popen("/usr/sbin/system_profiler SPDisplaysDataType", "r");
bool metalSupport = FALSE;
while (getc(f) != EOF)
@@ -98,6 +102,7 @@
} else {
fprintf(stderr, "Metal support is present\n");
}
#endif

if (!MTLFuncs_OpenLibrary()) {
return JNI_FALSE;