Lines Matching refs:sd

156         SurfaceData sd = null;
164 sd = D3DSurfaceData.createData(peer);
166 sd = null;
169 if (sd == null) {
170 sd = GDIWindowSurfaceData.createData(peer);
187 return sd;
246 * @param sd surface data for which to create SunGraphics2D
255 public Graphics2D createGraphics(SurfaceData sd,
258 if (!done && sd instanceof D3DWindowSurfaceData) {
259 D3DWindowSurfaceData d3dw = (D3DWindowSurfaceData)sd;
262 return new SunGraphics2D(sd, fgColor, bgColor, font);
268 sd = getGdiSurface(d3dw);
270 return super.createGraphics(sd, peer, fgColor, bgColor, font);
289 * @param sd the surface to be added
291 private void trackScreenSurface(SurfaceData sd) {
292 if (!done && sd instanceof D3DWindowSurfaceData) {
297 D3DWindowSurfaceData d3dw = (D3DWindowSurfaceData)sd;
307 public synchronized void dropScreenSurface(SurfaceData sd) {
308 if (d3dwSurfaces != null && sd instanceof D3DWindowSurfaceData) {
309 D3DWindowSurfaceData d3dw = (D3DWindowSurfaceData)sd;
317 SurfaceData sd)
319 SurfaceData newSurface = super.getReplacementScreenSurface(peer, sd);
435 for (D3DWindowSurfaceData sd : surfaces) {
438 if (sd.isValid() && (sd.isDirty() || sd.isSurfaceLost())) {
439 if (!sd.isSurfaceLost()) {
446 Rectangle r = sd.getBounds();
447 D3DSurfaceData.swapBuffers(sd, 0, 0,
449 sd.markClean();
453 } else if (!validate(sd)) {
458 sd.getPeer().replaceSurfaceDataLater();
471 * @param sd surface to be validated
475 private boolean validate(D3DWindowSurfaceData sd) {
476 if (sd.isSurfaceLost()) {
478 sd.restoreSurface();
481 Color bg = sd.getPeer().getBackgroundNoSync();
482 SunGraphics2D sg2d = new SunGraphics2D(sd, bg, bg, null);
483 sg2d.fillRect(0, 0, sd.getBounds().width, sd.getBounds().height);
489 sd.markClean();
492 repaintPeerTarget(sd.getPeer());