| Index: cc/tiled_layer.cc
|
| diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc
|
| index f2219e624fe7189ded6505c913ae683e0efbe19f..4fa7ed4129342c5d6e9b6759820311c47804090a 100644
|
| --- a/cc/tiled_layer.cc
|
| +++ b/cc/tiled_layer.cc
|
| @@ -521,10 +521,6 @@ void TiledLayerChromium::updateTileTextures(const IntRect& paintRect, int left,
|
| if (sourceRect.isEmpty())
|
| continue;
|
|
|
| - tile->texture()->prepareRect(sourceRect, stats);
|
| - if (occlusion)
|
| - occlusion->overdrawMetrics().didUpload(WebTransformationMatrix(), sourceRect, tile->opaqueRect());
|
| -
|
| const IntPoint anchor = m_tiler->tileRect(tile).location();
|
|
|
| // Calculate tile-space rectangle to upload into.
|
| @@ -545,11 +541,10 @@ void TiledLayerChromium::updateTileTextures(const IntRect& paintRect, int left,
|
| if (paintOffset.y() + sourceRect.height() > paintRect.height())
|
| CRASH();
|
|
|
| - TextureUploader::Parameters upload = { tile->texture(), sourceRect, destOffset };
|
| - if (tile->partialUpdate)
|
| - queue.appendPartialUpload(upload);
|
| - else
|
| - queue.appendFullUpload(upload);
|
| + tile->texture()->update(queue, sourceRect, destOffset, tile->partialUpdate, stats);
|
| + if (occlusion)
|
| + occlusion->overdrawMetrics().didUpload(WebTransformationMatrix(), sourceRect, tile->opaqueRect());
|
| +
|
| }
|
| }
|
| }
|
|
|