void TileController::setMarginSize(int marginSize) { if (marginSize == m_marginSize) return; m_marginSize = marginSize; setNeedsRevalidateTiles(); }
void TileController::setTileCoverage(TileCoverage coverage) { if (coverage == m_tileCoverage) return; m_tileCoverage = coverage; setNeedsRevalidateTiles(); }
void TileController::tileSizeChangeTimerFired() { if (!owningGraphicsLayer()) return; m_tileSizeLocked = false; setNeedsRevalidateTiles(); }
void TileController::setVelocity(const VelocityData& velocity) { bool changeAffectsTileCoverage = m_velocity.velocityOrScaleIsChanging() || velocity.velocityOrScaleIsChanging(); m_velocity = velocity; if (changeAffectsTileCoverage) setNeedsRevalidateTiles(); }
void TileController::setHasMargins(bool marginTop, bool marginBottom, bool marginLeft, bool marginRight) { BoxExtent<bool> marginEdges(marginTop, marginRight, marginBottom, marginLeft); if (marginEdges == m_marginEdges) return; m_marginEdges = marginEdges; setNeedsRevalidateTiles(); }
void TileController::setCoverageRect(const FloatRect& rect) { ASSERT(owningGraphicsLayer()->isCommittingChanges()); if (m_coverageRect == rect) return; m_coverageRect = rect; setNeedsRevalidateTiles(); }
void TileController::setTileMargins(int marginTop, int marginBottom, int marginLeft, int marginRight) { m_marginTop = marginTop; m_marginBottom = marginBottom; m_marginLeft = marginLeft; m_marginRight = marginRight; setNeedsRevalidateTiles(); }
void TileController::setIsInWindow(bool isInWindow) { if (m_isInWindow == isInWindow) return; m_isInWindow = isInWindow; if (m_isInWindow) setNeedsRevalidateTiles(); else { const double tileRevalidationTimeout = 4; scheduleTileRevalidation(tileRevalidationTimeout); } }
void TileController::tileRevalidationTimerFired() { if (!owningGraphicsLayer()) return; if (m_isInWindow) { setNeedsRevalidateTiles(); return; } // If we are not visible get rid of the zoomed-out tiles. clearZoomedOutTileGrid(); TileGrid::TileValidationPolicy validationPolicy = (shouldAggressivelyRetainTiles() ? 0 : TileGrid::PruneSecondaryTiles) | TileGrid::UnparentAllTiles; tileGrid().revalidateTiles(validationPolicy); }
void TileController::tileCacheLayerBoundsChanged() { ASSERT(owningGraphicsLayer()->isCommittingChanges()); setNeedsRevalidateTiles(); notePendingTileSizeChange(); }
void TileController::prepopulateRect(const FloatRect& rect) { if (tileGrid().prepopulateRect(rect)) setNeedsRevalidateTiles(); }