< prev index next >

modules/javafx.graphics/src/main/java/com/sun/prism/es2/GLPixelFormat.java

Print this page
rev 10044 : 8166230: use @Native annotation in graphics, media classes
Reviewed-by: kcr

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package com.sun.prism.es2;
 
+import java.lang.annotation.Native;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 
 import com.sun.glass.utils.NativeLibLoader;
 import com.sun.javafx.PlatformUtil;

@@ -68,19 +69,19 @@
         return nativePFInfo;
     }
 
     static class Attributes {
         //  These definitions are used by both the Mac, Win and X11 subclasses
-        final static int RED_SIZE      = 0;
-        final static int GREEN_SIZE    = 1;
-        final static int BLUE_SIZE     = 2;
-        final static int ALPHA_SIZE    = 3;
-        final static int DEPTH_SIZE    = 4;
-        final static int DOUBLEBUFFER  = 5;
-        final static int ONSCREEN      = 6;
+        @Native final static int RED_SIZE      = 0;
+        @Native final static int GREEN_SIZE    = 1;
+        @Native final static int BLUE_SIZE     = 2;
+        @Native final static int ALPHA_SIZE    = 3;
+        @Native final static int DEPTH_SIZE    = 4;
+        @Native final static int DOUBLEBUFFER  = 5;
+        @Native final static int ONSCREEN      = 6;
 
-        final static int NUM_ITEMS     = 7;
+        @Native final static int NUM_ITEMS     = 7;
 
         private boolean onScreen;
         private boolean doubleBuffer;
         private int alphaSize;
         private int blueSize;
< prev index next >