equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package sun.java2d.pipe.hw; |
26 package sun.java2d.pipe.hw; |
27 |
27 |
28 import javax.tools.annotation.GenerateNativeHeader; |
|
29 |
28 |
30 /** |
29 /** |
31 * Represents a set of capabilities of a BufferedContext and associated |
30 * Represents a set of capabilities of a BufferedContext and associated |
32 * AccelGraphicsConfig. |
31 * AccelGraphicsConfig. |
33 * |
32 * |
34 * @see AccelGraphicsConfig |
33 * @see AccelGraphicsConfig |
35 */ |
34 */ |
36 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
37 @GenerateNativeHeader |
|
38 public class ContextCapabilities { |
35 public class ContextCapabilities { |
39 /** Indicates that the context has no capabilities. */ |
36 /** Indicates that the context has no capabilities. */ |
40 public static final int CAPS_EMPTY = (0 << 0); |
37 public static final int CAPS_EMPTY = (0 << 0); |
41 /** Indicates that the context supports RT surfaces with alpha channel. */ |
38 /** Indicates that the context supports RT surfaces with alpha channel. */ |
42 public static final int CAPS_RT_PLAIN_ALPHA = (1 << 1); |
39 public static final int CAPS_RT_PLAIN_ALPHA = (1 << 1); |