jdk/src/java.desktop/windows/classes/sun/java2d/d3d/D3DVolatileSurfaceManager.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007, 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 |
77 |
77 |
78 /** |
78 /** |
79 * Create a pbuffer-based SurfaceData object (or init the backbuffer |
79 * Create a pbuffer-based SurfaceData object (or init the backbuffer |
80 * of an existing window if this is a double buffered GraphicsConfig). |
80 * of an existing window if this is a double buffered GraphicsConfig). |
81 */ |
81 */ |
|
82 @SuppressWarnings("deprecation") |
82 protected SurfaceData initAcceleratedSurface() { |
83 protected SurfaceData initAcceleratedSurface() { |
83 SurfaceData sData; |
84 SurfaceData sData; |
84 Component comp = vImg.getComponent(); |
85 Component comp = vImg.getComponent(); |
85 WComponentPeer peer = |
86 WComponentPeer peer = |
86 (comp != null) ? (WComponentPeer)comp.getPeer() : null; |
87 (comp != null) ? (WComponentPeer)comp.getPeer() : null; |