/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
boolean isOpaque,
{
this.graphicsConfig = gc;
}
return graphicsConfig;
}
/**
* Creates a SurfaceData object representing the primary (front) buffer
* of an on-screen Window.
*/
}
/**
* Creates a SurfaceData object representing the back buffer of a
* double-buffered on-screen Window.
*/
int type)
{
if (type == FLIP_BACKBUFFER) {
} else {
type);
}
}
/**
* Creates a SurfaceData object representing an off-screen buffer (either
* a Pbuffer or Texture).
*/
{
}
} else {
// REMIND: this should rarely (never?) happen, but what if
// default config is not GLX?
}
}
{
}
return peer.getSurfaceData();
}
r.x = r.y = 0;
return r;
}
/**
* Returns destination Component associated with this SurfaceData.
*/
}
}
/**
* A surface which implements a v-synced flip back-buffer with COPIED
* FlipContents.
*
* This surface serves as a back-buffer to the outside world, while
* it is actually an offscreen surface. When the BufferStrategy this surface
* belongs to is showed, it is first copied to the real private
* FLIP_BACKBUFFER, which is then flipped.
*/
public static class GLXVSyncOffScreenSurfaceData extends
{
int type)
{
}
return flipSurface;
}
public void flush() {
flipSurface.flush();
super.flush();
}
}
int type)
{
}
return restoreContents(offscreenImage);
}
if (type == FLIP_BACKBUFFER) {
r.x = r.y = 0;
return r;
} else {
}
}
/**
* Returns destination Image associated with this SurfaceData.
*/
return offscreenImage;
}
}
}