OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/layers/picture_layer_impl.h" | 5 #include "cc/layers/picture_layer_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 return layer_tree_impl()->tile_manager()->CreateTile( | 639 return layer_tree_impl()->tile_manager()->CreateTile( |
640 pile_.get(), | 640 pile_.get(), |
641 content_rect.size(), | 641 content_rect.size(), |
642 content_rect, | 642 content_rect, |
643 tiling->contents_scale(), | 643 tiling->contents_scale(), |
644 id(), | 644 id(), |
645 layer_tree_impl()->source_frame_number(), | 645 layer_tree_impl()->source_frame_number(), |
646 flags); | 646 flags); |
647 } | 647 } |
648 | 648 |
649 PicturePileImpl* PictureLayerImpl::GetPile() { | 649 RasterSource* PictureLayerImpl::GetRasterSource() { |
650 return pile_.get(); | 650 return pile_.get(); |
651 } | 651 } |
652 | 652 |
653 const Region* PictureLayerImpl::GetPendingInvalidation() { | 653 const Region* PictureLayerImpl::GetPendingInvalidation() { |
654 if (layer_tree_impl()->IsPendingTree()) | 654 if (layer_tree_impl()->IsPendingTree()) |
655 return &invalidation_; | 655 return &invalidation_; |
656 DCHECK(layer_tree_impl()->IsActiveTree()); | 656 DCHECK(layer_tree_impl()->IsActiveTree()); |
657 if (PictureLayerImpl* twin_layer = GetPendingOrActiveTwinLayer()) | 657 if (PictureLayerImpl* twin_layer = GetPendingOrActiveTwinLayer()) |
658 return &twin_layer->invalidation_; | 658 return &twin_layer->invalidation_; |
659 return nullptr; | 659 return nullptr; |
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); | 1712 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); |
1713 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; | 1713 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; |
1714 return tiling_range.end - 1 - current_tiling_range_offset; | 1714 return tiling_range.end - 1 - current_tiling_range_offset; |
1715 } | 1715 } |
1716 } | 1716 } |
1717 NOTREACHED(); | 1717 NOTREACHED(); |
1718 return 0; | 1718 return 0; |
1719 } | 1719 } |
1720 | 1720 |
1721 } // namespace cc | 1721 } // namespace cc |
OLD | NEW |