| Index: cc/trees/layer_tree_host_impl.cc
|
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
|
| index 4a945a224384de89251c3b1d7a2b888f932c4999..3ffef1ed209fc0b654953fc1c50d0721a2fc200b 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -1212,9 +1212,6 @@ void LayerTreeHostImpl::DidModifyTilePriorities() {
|
| }
|
|
|
| void LayerTreeHostImpl::DidInitializeVisibleTile() {
|
| - // TODO(reveman): Determine tiles that changed and only damage
|
| - // what's necessary.
|
| - SetFullRootLayerDamage();
|
| if (client_ && !client_->IsInsideDraw())
|
| client_->DidInitializeVisibleTileOnImplThread();
|
| }
|
| @@ -1223,6 +1220,19 @@ void LayerTreeHostImpl::NotifyReadyToActivate() {
|
| client_->NotifyReadyToActivate();
|
| }
|
|
|
| +void LayerTreeHostImpl::NotifyTileInitialized(const Tile* tile) {
|
| + if (!active_tree_)
|
| + return;
|
| +
|
| + LayerImpl* layer_impl =
|
| + active_tree_->FindActiveTreeLayerById(tile->layer_id());
|
| + if (layer_impl) {
|
| + gfx::RectF layer_damage_rect =
|
| + gfx::ScaleRect(tile->content_rect(), 1.f / tile->contents_scale());
|
| + layer_impl->AddLayerDamageRect(layer_damage_rect);
|
| + }
|
| +}
|
| +
|
| void LayerTreeHostImpl::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
|
| SetManagedMemoryPolicy(policy, zero_budget_);
|
| }
|
|
|