Home | History | Annotate | Download | only in chromium

Lines Matching refs:contentRect

130 void LayerTilerChromium::invalidateTiles(const IntRect& contentRect)
139 if (tileRect.intersects(contentRect))
148 void LayerTilerChromium::contentRectToTileIndices(const IntRect& contentRect, int& left, int& top, int& right, int& bottom) const
150 const IntRect layerRect = contentRectToLayerRect(contentRect);
158 IntRect LayerTilerChromium::contentRectToLayerRect(const IntRect& contentRect) const
160 IntPoint pos(contentRect.x() - m_layerPosition.x(), contentRect.y() - m_layerPosition.y());
161 IntRect layerRect(pos, contentRect.size());
165 layerRect = IntRect(IntPoint(0, 0), IntSize(contentRect.width() + pos.x(), contentRect.height() + pos.y()));
171 IntRect contentRect = layerRect;
172 contentRect.move(m_layerPosition.x(), m_layerPosition.y());
173 return contentRect;
185 IntRect contentRect = tileLayerRect(tile);
186 contentRect.move(m_layerPosition.x(), m_layerPosition.y());
187 return contentRect;
198 void LayerTilerChromium::invalidateRect(const IntRect& contentRect)
200 if (contentRect.isEmpty() || m_skipsDraw)
203 growLayerToContain(contentRect);
207 const IntRect layerRect = contentRectToLayerRect(contentRect);
210 contentRectToTileIndices(contentRect, left, top, right, bottom);
234 void LayerTilerChromium::update(TilePaintInterface& painter, const IntRect& contentRect)
241 invalidateTiles(contentRect);
242 growLayerToContain(contentRect);
248 contentRectToTileIndices(contentRect, left, top, right, bottom);
265 m_updateRect = contentRect;
294 void LayerTilerChromium::updateFromPixels(const IntRect& contentRect, const IntRect& paintRect, const uint8_t* paintPixels)
303 contentRectToTileIndices(contentRect, left, top, right, bottom);
380 void LayerTilerChromium::draw(const IntRect& contentRect, const TransformationMatrix& globalTransform, float opacity)
391 contentRectToTileIndices(contentRect, left, top, right, bottom);
421 void LayerTilerChromium::growLayerToContain(const IntRect& contentRect)
424 IntRect layerRect = contentRectToLayerRect(contentRect);