void ContentLayerChromium::setTexturePriorities(const CCPriorityCalculator& priorityCalc) { // Update the tile data before creating all the layer's tiles. updateTileSizeAndTilingOption(); TiledLayerChromium::setTexturePriorities(priorityCalc); }
void ContentLayerChromium::paintContentsIfDirty() { updateTileSizeAndTilingOption(); IntRect layerRect; // Always call prepareToUpdate() but with an empty layer rectangle when // layer doesn't draw contents. if (drawsContent()) layerRect = visibleLayerRect(); prepareToUpdate(layerRect); m_needsDisplay = false; }
void ContentLayerChromium::paintContentsIfDirty() { ASSERT(drawsContent()); updateTileSizeAndTilingOption(); const IntRect& layerRect = visibleLayerRect(); if (layerRect.isEmpty()) return; IntRect dirty = enclosingIntRect(m_dirtyRect); dirty.intersect(IntRect(IntPoint(), contentBounds())); invalidateRect(dirty); if (!drawsContent()) return; prepareToUpdate(layerRect); resetNeedsDisplay(); }
void TiledLayerChromium::setTilingOption(TilingOption tilingOption) { m_tilingOption = tilingOption; updateTileSizeAndTilingOption(); }