| 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 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 5 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 gfx::Rect layer_rect_; | 89 gfx::Rect layer_rect_; |
| 90 TilingData::Iterator tile_iterator_; | 90 TilingData::Iterator tile_iterator_; |
| 91 PixelRefMap::Iterator pixel_ref_iterator_; | 91 PixelRefMap::Iterator pixel_ref_iterator_; |
| 92 std::set<const void*> processed_pictures_; | 92 std::set<const void*> processed_pictures_; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 protected: | 95 protected: |
| 96 friend class PicturePile; | 96 friend class PicturePile; |
| 97 friend class PixelRefIterator; | 97 friend class PixelRefIterator; |
| 98 | 98 |
| 99 // TODO(vmpstr): Change this when pictures are split from invalidation info. | |
| 100 using PictureMapKey = PicturePile::PictureMapKey; | 99 using PictureMapKey = PicturePile::PictureMapKey; |
| 101 using PictureMap = PicturePile::PictureMap; | 100 using PictureMap = PicturePile::PictureMap; |
| 102 using PictureInfo = PicturePile::PictureInfo; | |
| 103 | 101 |
| 104 PicturePileImpl(); | 102 PicturePileImpl(); |
| 105 explicit PicturePileImpl(const PicturePile* other, bool can_use_lcd_text); | 103 explicit PicturePileImpl(const PicturePile* other, bool can_use_lcd_text); |
| 106 explicit PicturePileImpl(const PicturePileImpl* other, bool can_use_lcd_text); | 104 explicit PicturePileImpl(const PicturePileImpl* other, bool can_use_lcd_text); |
| 107 ~PicturePileImpl() override; | 105 ~PicturePileImpl() override; |
| 108 | 106 |
| 109 int buffer_pixels() const { return tiling_.border_texels(); } | 107 int buffer_pixels() const { return tiling_.border_texels(); } |
| 110 | 108 |
| 111 // These members are const as this raster source may be in use on another | 109 // These members are const as this raster source may be in use on another |
| 112 // thread and so should not be touched after construction. | 110 // thread and so should not be touched after construction. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; | 148 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; |
| 151 | 149 |
| 152 gfx::Rect PaddedRect(const PictureMapKey& key) const; | 150 gfx::Rect PaddedRect(const PictureMapKey& key) const; |
| 153 | 151 |
| 154 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 152 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
| 155 }; | 153 }; |
| 156 | 154 |
| 157 } // namespace cc | 155 } // namespace cc |
| 158 | 156 |
| 159 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 157 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| OLD | NEW |