| 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_TILES_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_H_ |
| 6 #define CC_TILES_PICTURE_LAYER_TILING_H_ | 6 #define CC_TILES_PICTURE_LAYER_TILING_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 Tile* operator*() const { return current_tile_; } | 205 Tile* operator*() const { return current_tile_; } |
| 206 | 206 |
| 207 CoverageIterator& operator++(); | 207 CoverageIterator& operator++(); |
| 208 operator bool() const { return tile_j_ <= bottom_; } | 208 operator bool() const { return tile_j_ <= bottom_; } |
| 209 | 209 |
| 210 int i() const { return tile_i_; } | 210 int i() const { return tile_i_; } |
| 211 int j() const { return tile_j_; } | 211 int j() const { return tile_j_; } |
| 212 | 212 |
| 213 private: | 213 private: |
| 214 const PictureLayerTiling* tiling_; | 214 const PictureLayerTiling* tiling_; |
| 215 gfx::Size dest_layer_bounds_; |
| 215 gfx::Rect dest_rect_; | 216 gfx::Rect dest_rect_; |
| 216 float dest_to_content_scale_; | 217 float dest_to_content_scale_; |
| 217 | 218 |
| 218 Tile* current_tile_; | 219 Tile* current_tile_; |
| 219 gfx::Rect current_geometry_rect_; | 220 gfx::Rect current_geometry_rect_; |
| 220 int tile_i_; | 221 int tile_i_; |
| 221 int tile_j_; | 222 int tile_j_; |
| 222 int left_; | 223 int left_; |
| 223 int top_; | 224 int top_; |
| 224 int right_; | 225 int right_; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 bool has_eventually_rect_tiles_; | 355 bool has_eventually_rect_tiles_; |
| 355 bool all_tiles_done_; | 356 bool all_tiles_done_; |
| 356 | 357 |
| 357 private: | 358 private: |
| 358 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); | 359 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); |
| 359 }; | 360 }; |
| 360 | 361 |
| 361 } // namespace cc | 362 } // namespace cc |
| 362 | 363 |
| 363 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ | 364 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |