< prev index next >

modules/javafx.graphics/src/main/java/com/sun/glass/ui/Pixels.java

Print this page
rev 10044 : 8166471: use @Native annotation in graphics, windows
Reviewed-by: kcr

@@ -22,10 +22,11 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 package com.sun.glass.ui;
 
+import java.lang.annotation.Native;
 import java.nio.Buffer;
 import java.nio.ByteBuffer;
 import java.nio.IntBuffer;
 import java.nio.ByteOrder;
 

@@ -49,12 +50,12 @@
      * ...
      * Calling code should take care of endianness of the platform
      * when passing image data as ints.
      */
     public static class Format {
-        public static final int BYTE_BGRA_PRE = 1;
-        public static final int BYTE_ARGB = 2;
+        @Native public static final int BYTE_BGRA_PRE = 1;
+        @Native public static final int BYTE_ARGB = 2;
     }
 
     public static int getNativeFormat() {
         Application.checkEventThread();
         return Application.GetApplication().staticPixels_getNativeFormat();
< prev index next >