jdk/src/java.desktop/windows/classes/sun/java2d/opengl/WGLVolatileSurfaceManager.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2004, 2014, 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 |
71 |
71 |
72 /** |
72 /** |
73 * Create a pbuffer-based SurfaceData object (or init the backbuffer |
73 * Create a pbuffer-based SurfaceData object (or init the backbuffer |
74 * of an existing window if this is a double buffered GraphicsConfig). |
74 * of an existing window if this is a double buffered GraphicsConfig). |
75 */ |
75 */ |
|
76 @SuppressWarnings("deprecation") |
76 protected SurfaceData initAcceleratedSurface() { |
77 protected SurfaceData initAcceleratedSurface() { |
77 SurfaceData sData; |
78 SurfaceData sData; |
78 Component comp = vImg.getComponent(); |
79 Component comp = vImg.getComponent(); |
79 WComponentPeer peer = |
80 WComponentPeer peer = |
80 (comp != null) ? (WComponentPeer)comp.getPeer() : null; |
81 (comp != null) ? (WComponentPeer)comp.getPeer() : null; |