| 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 return layer_tree_impl()->tile_manager()->CreateTile( | 621 return layer_tree_impl()->tile_manager()->CreateTile( |
| 622 pile_.get(), | 622 pile_.get(), |
| 623 content_rect.size(), | 623 content_rect.size(), |
| 624 content_rect, | 624 content_rect, |
| 625 tiling->contents_scale(), | 625 tiling->contents_scale(), |
| 626 id(), | 626 id(), |
| 627 layer_tree_impl()->source_frame_number(), | 627 layer_tree_impl()->source_frame_number(), |
| 628 flags); | 628 flags); |
| 629 } | 629 } |
| 630 | 630 |
| 631 PicturePileImpl* PictureLayerImpl::GetPile() { | 631 RasterSource* PictureLayerImpl::GetRasterSource() { |
| 632 return pile_.get(); | 632 return pile_.get(); |
| 633 } | 633 } |
| 634 | 634 |
| 635 const Region* PictureLayerImpl::GetInvalidation() { | 635 const Region* PictureLayerImpl::GetInvalidation() { |
| 636 return &invalidation_; | 636 return &invalidation_; |
| 637 } | 637 } |
| 638 | 638 |
| 639 const PictureLayerTiling* PictureLayerImpl::GetTwinTiling( | 639 const PictureLayerTiling* PictureLayerImpl::GetTwinTiling( |
| 640 const PictureLayerTiling* tiling) const { | 640 const PictureLayerTiling* tiling) const { |
| 641 if (!twin_layer_) | 641 if (!twin_layer_) |
| (...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); | 1676 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); |
| 1677 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; | 1677 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; |
| 1678 return tiling_range.end - 1 - current_tiling_range_offset; | 1678 return tiling_range.end - 1 - current_tiling_range_offset; |
| 1679 } | 1679 } |
| 1680 } | 1680 } |
| 1681 NOTREACHED(); | 1681 NOTREACHED(); |
| 1682 return 0; | 1682 return 0; |
| 1683 } | 1683 } |
| 1684 | 1684 |
| 1685 } // namespace cc | 1685 } // namespace cc |
| OLD | NEW |