OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 | 1314 |
1315 const std::vector<PictureLayerImpl*>& LayerTreeHostImpl::GetPictureLayers() | 1315 const std::vector<PictureLayerImpl*>& LayerTreeHostImpl::GetPictureLayers() |
1316 const { | 1316 const { |
1317 return picture_layers_; | 1317 return picture_layers_; |
1318 } | 1318 } |
1319 | 1319 |
1320 void LayerTreeHostImpl::NotifyReadyToActivate() { | 1320 void LayerTreeHostImpl::NotifyReadyToActivate() { |
1321 client_->NotifyReadyToActivate(); | 1321 client_->NotifyReadyToActivate(); |
1322 } | 1322 } |
1323 | 1323 |
| 1324 void LayerTreeHostImpl::NotifyReadyToDraw() { |
| 1325 client_->NotifyReadyToDraw(); |
| 1326 } |
| 1327 |
1324 void LayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { | 1328 void LayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { |
1325 TRACE_EVENT0("cc", "LayerTreeHostImpl::NotifyTileStateChanged"); | 1329 TRACE_EVENT0("cc", "LayerTreeHostImpl::NotifyTileStateChanged"); |
1326 | 1330 |
1327 if (active_tree_) { | 1331 if (active_tree_) { |
1328 LayerImpl* layer_impl = | 1332 LayerImpl* layer_impl = |
1329 active_tree_->FindActiveTreeLayerById(tile->layer_id()); | 1333 active_tree_->FindActiveTreeLayerById(tile->layer_id()); |
1330 if (layer_impl) | 1334 if (layer_impl) |
1331 layer_impl->NotifyTileStateChanged(tile); | 1335 layer_impl->NotifyTileStateChanged(tile); |
1332 } | 1336 } |
1333 | 1337 |
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3514 } | 3518 } |
3515 | 3519 |
3516 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 3520 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
3517 std::vector<PictureLayerImpl*>::iterator it = | 3521 std::vector<PictureLayerImpl*>::iterator it = |
3518 std::find(picture_layers_.begin(), picture_layers_.end(), layer); | 3522 std::find(picture_layers_.begin(), picture_layers_.end(), layer); |
3519 DCHECK(it != picture_layers_.end()); | 3523 DCHECK(it != picture_layers_.end()); |
3520 picture_layers_.erase(it); | 3524 picture_layers_.erase(it); |
3521 } | 3525 } |
3522 | 3526 |
3523 } // namespace cc | 3527 } // namespace cc |
OLD | NEW |