| 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 7f6ae44ff74ef374156cae786bf66e6d54bdcd0a..cd1abd884b051f1268906662a2c9e72937aeaff1 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -1236,6 +1236,10 @@ void LayerTreeHostImpl::DidInitializeVisibleTile() {
|
| client_->DidInitializeVisibleTileOnImplThread();
|
| }
|
|
|
| +const std::vector<PictureLayerImpl*>& LayerTreeHostImpl::GetPictureLayers() {
|
| + return picture_layers_;
|
| +}
|
| +
|
| void LayerTreeHostImpl::NotifyReadyToActivate() {
|
| client_->NotifyReadyToActivate();
|
| }
|
| @@ -3135,4 +3139,17 @@ void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() {
|
| (*it)->OnSetNeedsRedrawOnImpl();
|
| }
|
|
|
| +void LayerTreeHostImpl::RegisterPictureLayerImpl(PictureLayerImpl* layer) {
|
| + DCHECK(std::find(picture_layers_.begin(), picture_layers_.end(), layer) ==
|
| + picture_layers_.end());
|
| + picture_layers_.push_back(layer);
|
| +}
|
| +
|
| +void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
|
| + std::vector<PictureLayerImpl*>::iterator it =
|
| + std::find(picture_layers_.begin(), picture_layers_.end(), layer);
|
| + DCHECK(it != picture_layers_.end());
|
| + picture_layers_.erase(it);
|
| +}
|
| +
|
| } // namespace cc
|
|
|