B2G/gecko/toolkit/content/tests/fennec-tile-testapp/chrome/content/TileManager.js
// changed somehow (or didn't change but someone asked it to update).
changed somehow (or didn't change but someone asked it to update).
changed somehow ( or didn ' t change but someone asked it to update ) .
function viewportChangeHandler(viewportRect,
                                                        criticalRect,
                                                        boundsSizeChanged,
                                                        dirtyAll) {
    dump("***vphandler***\n");
    dump(viewportRect.toString() + "\n");
    dump(criticalRect.toString() + "\n");
    dump(boundsSizeChanged + "\n");
    dump(dirtyAll + "\n***************\n");
    let tc = this._tileCache;
    tc.iBound = Math.ceil(viewportRect.right / kTileWidth);
    tc.jBound = Math.ceil(viewportRect.bottom / kTileHeight);
    if (!criticalRect || !criticalRect.equals(this._criticalRect)) {
      this.beginCriticalMove(criticalRect);
      this.endCriticalMove(criticalRect, !boundsSizeChanged);
    }
    if (boundsSizeChanged) {
      this.dirtyRects([viewportRect.clone()], true);
    }
  }
function viewportChangeHandler ( viewportRect , criticalRect , boundsSizeChanged , dirtyAll ) { dump ( "***vphandler***\n" ) ; dump ( viewportRect . toString ( ) + "\n" ) ; dump ( criticalRect . toString ( ) + "\n" ) ; dump ( boundsSizeChanged + "\n" ) ; dump ( dirtyAll + "\n***************\n" ) ; let tc = this . _tileCache ; tc . iBound = Math . ceil ( viewportRect . right / kTileWidth ) ; tc . jBound = Math . ceil ( viewportRect . bottom / kTileHeight ) ; if ( ! criticalRect || ! criticalRect . equals ( this . _criticalRect ) ) { this . beginCriticalMove ( criticalRect ) ; this . endCriticalMove ( criticalRect , ! boundsSizeChanged ) ; } if ( boundsSizeChanged ) { this . dirtyRects ( [ viewportRect . clone ( ) ] , true ) ; } }
changed somehow (or didn't change but someone asked it to update).
changed somehow ( or didn ' t change but someone asked it to update ) .
// !!! --- DEBUG BEGIN ----- // !!! --- DEBUG END ------- // TODO fastpath if !dirtyAll