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 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 | 1320 |
1321 const std::vector<PictureLayerImpl*>& LayerTreeHostImpl::GetPictureLayers() | 1321 const std::vector<PictureLayerImpl*>& LayerTreeHostImpl::GetPictureLayers() |
1322 const { | 1322 const { |
1323 return picture_layers_; | 1323 return picture_layers_; |
1324 } | 1324 } |
1325 | 1325 |
1326 void LayerTreeHostImpl::NotifyReadyToActivate() { | 1326 void LayerTreeHostImpl::NotifyReadyToActivate() { |
1327 client_->NotifyReadyToActivate(); | 1327 client_->NotifyReadyToActivate(); |
1328 } | 1328 } |
1329 | 1329 |
| 1330 void LayerTreeHostImpl::NotifyReadyToDraw() { |
| 1331 client_->NotifyReadyToDraw(); |
| 1332 } |
| 1333 |
1330 void LayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { | 1334 void LayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { |
1331 TRACE_EVENT0("cc", "LayerTreeHostImpl::NotifyTileStateChanged"); | 1335 TRACE_EVENT0("cc", "LayerTreeHostImpl::NotifyTileStateChanged"); |
1332 | 1336 |
1333 if (active_tree_) { | 1337 if (active_tree_) { |
1334 LayerImpl* layer_impl = | 1338 LayerImpl* layer_impl = |
1335 active_tree_->FindActiveTreeLayerById(tile->layer_id()); | 1339 active_tree_->FindActiveTreeLayerById(tile->layer_id()); |
1336 if (layer_impl) | 1340 if (layer_impl) |
1337 layer_impl->NotifyTileStateChanged(tile); | 1341 layer_impl->NotifyTileStateChanged(tile); |
1338 } | 1342 } |
1339 | 1343 |
(...skipping 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3522 } | 3526 } |
3523 | 3527 |
3524 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 3528 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
3525 std::vector<PictureLayerImpl*>::iterator it = | 3529 std::vector<PictureLayerImpl*>::iterator it = |
3526 std::find(picture_layers_.begin(), picture_layers_.end(), layer); | 3530 std::find(picture_layers_.begin(), picture_layers_.end(), layer); |
3527 DCHECK(it != picture_layers_.end()); | 3531 DCHECK(it != picture_layers_.end()); |
3528 picture_layers_.erase(it); | 3532 picture_layers_.erase(it); |
3529 } | 3533 } |
3530 | 3534 |
3531 } // namespace cc | 3535 } // namespace cc |
OLD | NEW |