| 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_LAYER_TILING_SET_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 float contents_scale, | 119 float contents_scale, |
| 120 const gfx::Rect& content_rect, | 120 const gfx::Rect& content_rect, |
| 121 float ideal_contents_scale); | 121 float ideal_contents_scale); |
| 122 ~CoverageIterator(); | 122 ~CoverageIterator(); |
| 123 | 123 |
| 124 // Visible rect (no borders), always in the space of rect, | 124 // Visible rect (no borders), always in the space of rect, |
| 125 // regardless of the relative contents scale of the tiling. | 125 // regardless of the relative contents scale of the tiling. |
| 126 gfx::Rect geometry_rect() const; | 126 gfx::Rect geometry_rect() const; |
| 127 // Texture rect (in texels) for geometry_rect | 127 // Texture rect (in texels) for geometry_rect |
| 128 gfx::RectF texture_rect() const; | 128 gfx::RectF texture_rect() const; |
| 129 // Texture size in texels | |
| 130 gfx::Size texture_size() const; | |
| 131 | 129 |
| 132 Tile* operator->() const; | 130 Tile* operator->() const; |
| 133 Tile* operator*() const; | 131 Tile* operator*() const; |
| 134 | 132 |
| 135 CoverageIterator& operator++(); | 133 CoverageIterator& operator++(); |
| 136 operator bool() const; | 134 operator bool() const; |
| 137 | 135 |
| 138 TileResolution resolution() const; | 136 TileResolution resolution() const; |
| 139 PictureLayerTiling* CurrentTiling() const; | 137 PictureLayerTiling* CurrentTiling() const; |
| 140 | 138 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 const int skewport_extrapolation_limit_in_content_pixels_; | 173 const int skewport_extrapolation_limit_in_content_pixels_; |
| 176 PictureLayerTilingClient* client_; | 174 PictureLayerTilingClient* client_; |
| 177 | 175 |
| 178 friend class Iterator; | 176 friend class Iterator; |
| 179 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 177 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
| 180 }; | 178 }; |
| 181 | 179 |
| 182 } // namespace cc | 180 } // namespace cc |
| 183 | 181 |
| 184 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 182 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |