| 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 return layer_tree_impl()->tile_manager()->CreateTile( | 626 return layer_tree_impl()->tile_manager()->CreateTile( |
| 627 pile_.get(), | 627 pile_.get(), |
| 628 content_rect.size(), | 628 content_rect.size(), |
| 629 content_rect, | 629 content_rect, |
| 630 tiling->contents_scale(), | 630 tiling->contents_scale(), |
| 631 id(), | 631 id(), |
| 632 layer_tree_impl()->source_frame_number(), | 632 layer_tree_impl()->source_frame_number(), |
| 633 flags); | 633 flags); |
| 634 } | 634 } |
| 635 | 635 |
| 636 PicturePileImpl* PictureLayerImpl::GetPile() { | 636 RasterSource* PictureLayerImpl::GetRasterSource() { |
| 637 return pile_.get(); | 637 return pile_.get(); |
| 638 } | 638 } |
| 639 | 639 |
| 640 const Region* PictureLayerImpl::GetPendingInvalidation() { | 640 const Region* PictureLayerImpl::GetPendingInvalidation() { |
| 641 if (layer_tree_impl()->IsPendingTree()) | 641 if (layer_tree_impl()->IsPendingTree()) |
| 642 return &invalidation_; | 642 return &invalidation_; |
| 643 DCHECK(layer_tree_impl()->IsActiveTree()); | 643 DCHECK(layer_tree_impl()->IsActiveTree()); |
| 644 if (PictureLayerImpl* twin_layer = GetTwinLayer()) | 644 if (PictureLayerImpl* twin_layer = GetTwinLayer()) |
| 645 return &twin_layer->invalidation_; | 645 return &twin_layer->invalidation_; |
| 646 return nullptr; | 646 return nullptr; |
| (...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1692 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); | 1692 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); |
| 1693 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; | 1693 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; |
| 1694 return tiling_range.end - 1 - current_tiling_range_offset; | 1694 return tiling_range.end - 1 - current_tiling_range_offset; |
| 1695 } | 1695 } |
| 1696 } | 1696 } |
| 1697 NOTREACHED(); | 1697 NOTREACHED(); |
| 1698 return 0; | 1698 return 0; |
| 1699 } | 1699 } |
| 1700 | 1700 |
| 1701 } // namespace cc | 1701 } // namespace cc |
| OLD | NEW |