Home | History | Annotate | Download | only in chromium

Lines Matching refs:Tile

97     Tile* tile = tileAt(0, 0);
98 return tile ? tile->texture() : 0;
108 LayerTilerChromium::Tile* LayerTilerChromium::createTile(int i, int j)
112 RefPtr<Tile> tile;
114 tile = m_unusedTiles.last().release();
116 ASSERT(tile->refCount() == 1);
120 tile = adoptRef(new Tile(LayerTexture::create(context, manager)));
122 m_tiles.add(make_pair(i, j), tile);
124 tile->moveTo(i, j);
125 tile->m_dirtyLayerRect = tileLayerRect(tile.get());
127 return tile.get();
137 Tile* tile = iter->second.get();
138 IntRect tileRect = tileContentRect(tile);
176 LayerTilerChromium::Tile* LayerTilerChromium::tileAt(int i, int j) const
178 Tile* tile = m_tiles.get(make_pair(i, j)).get();
179 ASSERT(!tile || tile->refCount() == 1);
180 return tile;
183 IntRect LayerTilerChromium::tileContentRect(const Tile* tile) const
185 IntRect contentRect = tileLayerRect(tile);
190 IntRect LayerTilerChromium::tileLayerRect(const Tile* tile) const
192 const int index = m_tilingData.tileIndex(tile->i(), tile->j());
213 Tile* tile = tileAt(i, j);
214 if (!tile)
216 IntRect bound = tileLayerRect(tile);
218 tile->m_dirtyLayerRect.unite(bound);
251 Tile* tile = tileAt(i, j);
252 if (!tile)
253 tile = createTile(i, j);
254 if (!tile->texture()->isValid(m_tileSize, GraphicsContext3D::RGBA))
255 tile->m_dirtyLayerRect = tileLayerRect(tile);
257 tile->texture()->reserve(m_tileSize, GraphicsContext3D::RGBA);
258 dirtyLayerRect.unite(tile->m_dirtyLayerRect);
262 // Due to borders, when the paint rect is extended to tile boundaries, it
306 Tile* tile = tileAt(i, j);
307 if (!tile)
308 tile = createTile(i, j);
309 else if (!tile->dirty())
313 IntRect sourceRect = tileContentRect(tile);
315 sourceRect.intersect(layerRectToContentRect(tile->m_dirtyLayerRect));
316 // Paint rect not guaranteed to line up on tile boundaries, so
322 if (!tile->texture()->isReserved()) {
323 if (!tile->texture()->reserve(m_tileSize, GraphicsContext3D::RGBA)) {
330 // Calculate tile-space rectangle to upload into.
337 // Offset from paint rectangle to this tile's dirty rectangle.
362 tile->texture()->bindTexture();
370 tile->clearDirty();
394 Tile* tile = tileAt(i, j);
395 if (!tile)
398 tile->texture()->bindTexture();
404 IntRect tileRect = m_tilingData.tileBounds(m_tilingData.tileIndex(tile->i(), tile->j()));
408 IntPoint texOffset = m_tilingData.textureOffset(tile->i(), tile->j());
423 // Grow the tile array to contain this content rect.