| 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 3ed0aeebfffe76207ba59d15e1b4c94b33bde6fb..53ef7afc6e5f1b4cd756df5c7eb0071a2e84b125 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -1218,15 +1218,20 @@ void LayerTreeHostImpl::NotifyReadyToActivate() {
|
| }
|
|
|
| void LayerTreeHostImpl::NotifyTileInitialized(const Tile* tile) {
|
| - if (!active_tree_)
|
| - return;
|
| + TRACE_EVENT0("cc", "LayerTreeHostImpl::NotifyTileInitialized");
|
|
|
| - 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->AddDamageRect(layer_damage_rect);
|
| + if (active_tree_) {
|
| + LayerImpl* layer_impl =
|
| + active_tree_->FindActiveTreeLayerById(tile->layer_id());
|
| + if (layer_impl)
|
| + layer_impl->NotifyTileInitialized(tile);
|
| + }
|
| +
|
| + if (pending_tree_) {
|
| + LayerImpl* layer_impl =
|
| + pending_tree_->FindPendingTreeLayerById(tile->layer_id());
|
| + if (layer_impl)
|
| + layer_impl->NotifyTileInitialized(tile);
|
| }
|
| }
|
|
|
|
|