aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Ajit Ghaisas <aghaisas@openjdk.org> 2021-04-17 12:33:07 +0000
committerGravatar Ajit Ghaisas <aghaisas@openjdk.org> 2021-04-17 12:33:07 +0000
commitcb8394a841023b2cf4a9103f47f50e3fd28c5b04 (patch)
tree4bf3c9e2048bccb5bcab40bde205023b0a88b713
parent66f89870f226f499ce8d89a8b51357484bf7f694 (diff)
downloadjdk-cb8394a841023b2cf4a9103f47f50e3fd28c5b04.tar.gz
jdk-cb8394a841023b2cf4a9103f47f50e3fd28c5b04.zip
8265304: Temporarily make Metal the default 2D rendering pipeline for macOS
Reviewed-by: jdv, kcr, azvegint, prr
-rw-r--r--src/java.desktop/macosx/classes/sun/java2d/MacOSFlags.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/java.desktop/macosx/classes/sun/java2d/MacOSFlags.java b/src/java.desktop/macosx/classes/sun/java2d/MacOSFlags.java
index 097610300f2..82ee0898066 100644
--- a/src/java.desktop/macosx/classes/sun/java2d/MacOSFlags.java
+++ b/src/java.desktop/macosx/classes/sun/java2d/MacOSFlags.java
@@ -90,13 +90,16 @@ public class MacOSFlags {
PropertyState metalState = getBooleanProp("sun.java2d.metal", PropertyState.UNSPECIFIED);
// Handle invalid combinations to use the default rendering pipeline
- // Current default rendering pipeline is OpenGL
- // (The default can be changed to Metal in future just by toggling two states in this if condition block)
+ // Current default rendering pipeline is Metal
+ // (The default can be changed to OpenGL in future just by toggling two states in this if condition block)
+ // ---------------------------------------------------------------------
+ // TODO : Revert default rendering pipeline to OpenGL
+ // ---------------------------------------------------------------------
if ((oglState == PropertyState.UNSPECIFIED && metalState == PropertyState.UNSPECIFIED) ||
(oglState == PropertyState.DISABLED && metalState == PropertyState.DISABLED) ||
(oglState == PropertyState.ENABLED && metalState == PropertyState.ENABLED)) {
- oglState = PropertyState.ENABLED; // Enable default pipeline
- metalState = PropertyState.DISABLED; // Disable non-default pipeline
+ metalState = PropertyState.ENABLED; // Enable default pipeline
+ oglState = PropertyState.DISABLED; // Disable non-default pipeline
}
if (metalState == PropertyState.UNSPECIFIED) {