Пример #1
0
 /**
  * If acceleration should no longer be used for this surface. This implementation flags to the
  * manager that it should no longer attempt to re-create a D3DSurface.
  */
 void disableAccelerationForSurface() {
   if (offscreenImage != null) {
     SurfaceManager sm = SurfaceManager.getManager(offscreenImage);
     if (sm instanceof D3DVolatileSurfaceManager) {
       setSurfaceLost(true);
       ((D3DVolatileSurfaceManager) sm).setAccelerationEnabled(false);
     }
   }
 }