public static D3DSurfaceData createData(WComponentPeer peer){
  D3DGraphicsConfig gc=getGC(peer);
  if (gc == null || !peer.isAccelCapable()) {
    return null;
  }
  return new D3DWindowSurfaceData(peer,gc);
}

public static D3DSurfaceData createData ( WComponentPeer peer ) { D3DGraphicsConfig gc = getGC ( peer ) ; if ( gc == null || ! peer . isAccelCapable ( ) ) { return null ; } return new D3DWindowSurfaceData ( peer , gc ) ; }
returns a window type of surface - a swap chain which serves as an on - screen surface , handled by the d3dscreenupdatemanager . note that the native surface is not initialized when the surface is created to avoid using excessive resources , and the surface is placed into the lost state . it will be restored prior to any rendering to it .
