Lines Matching defs:sd

164         SurfaceData sd = null;
172 sd = D3DSurfaceData.createData(peer);
174 sd = null;
177 if (sd == null) {
178 sd = GDIWindowSurfaceData.createData(peer);
195 return sd;
254 * @param sd surface data for which to create SunGraphics2D
263 public Graphics2D createGraphics(SurfaceData sd,
266 if (!done && sd instanceof D3DWindowSurfaceData) {
267 D3DWindowSurfaceData d3dw = (D3DWindowSurfaceData)sd;
270 return new SunGraphics2D(sd, fgColor, bgColor, font);
276 sd = getGdiSurface(d3dw);
278 return super.createGraphics(sd, peer, fgColor, bgColor, font);
299 private void trackScreenSurface(SurfaceData sd) {
300 if (!done && sd instanceof D3DWindowSurfaceData) {
305 D3DWindowSurfaceData d3dw = (D3DWindowSurfaceData)sd;
315 public synchronized void dropScreenSurface(SurfaceData sd) {
316 if (d3dwSurfaces != null && sd instanceof D3DWindowSurfaceData) {
317 D3DWindowSurfaceData d3dw = (D3DWindowSurfaceData)sd;
325 SurfaceData sd)
327 SurfaceData newSurface = super.getReplacementScreenSurface(peer, sd);
448 for (D3DWindowSurfaceData sd : surfaces) {
451 if (sd.isValid() && (sd.isDirty() || sd.isSurfaceLost())) {
452 if (!sd.isSurfaceLost()) {
459 Rectangle r = sd.getBounds();
460 D3DSurfaceData.swapBuffers(sd, 0, 0,
462 sd.markClean();
466 } else if (!validate(sd)) {
471 sd.getPeer().replaceSurfaceDataLater();
484 * @param sd surface to be validated
488 private boolean validate(D3DWindowSurfaceData sd) {
489 if (sd.isSurfaceLost()) {
491 sd.restoreSurface();
494 Color bg = sd.getPeer().getBackgroundNoSync();
495 SunGraphics2D sg2d = new SunGraphics2D(sd, bg, bg, null);
496 sg2d.fillRect(0, 0, sd.getBounds().width, sd.getBounds().height);
502 sd.markClean();
505 repaintPeerTarget(sd.getPeer());