| 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_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_PICTURE_LAYER_TILING_H_ |
| 6 #define CC_PICTURE_LAYER_TILING_H_ | 6 #define CC_PICTURE_LAYER_TILING_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 Tile* operator->() const { return current_tile_; } | 103 Tile* operator->() const { return current_tile_; } |
| 104 Tile* operator*() const { return current_tile_; } | 104 Tile* operator*() const { return current_tile_; } |
| 105 | 105 |
| 106 Iterator& operator++(); | 106 Iterator& operator++(); |
| 107 operator bool() const { return tile_j_ <= bottom_; } | 107 operator bool() const { return tile_j_ <= bottom_; } |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 const PictureLayerTiling* tiling_; | 110 const PictureLayerTiling* tiling_; |
| 111 gfx::Rect dest_rect_; | 111 gfx::Rect dest_rect_; |
| 112 float dest_to_content_scale_x_; | 112 float dest_to_content_scale_; |
| 113 float dest_to_content_scale_y_; | |
| 114 | 113 |
| 115 Tile* current_tile_; | 114 Tile* current_tile_; |
| 116 gfx::Rect current_geometry_rect_; | 115 gfx::Rect current_geometry_rect_; |
| 117 int tile_i_; | 116 int tile_i_; |
| 118 int tile_j_; | 117 int tile_j_; |
| 119 int left_; | 118 int left_; |
| 120 int top_; | 119 int top_; |
| 121 int right_; | 120 int right_; |
| 122 int bottom_; | 121 int bottom_; |
| 123 | 122 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 TileResolution resolution_; | 169 TileResolution resolution_; |
| 171 int last_source_frame_number_; | 170 int last_source_frame_number_; |
| 172 double last_impl_frame_time_; | 171 double last_impl_frame_time_; |
| 173 | 172 |
| 174 friend class Iterator; | 173 friend class Iterator; |
| 175 }; | 174 }; |
| 176 | 175 |
| 177 } // namespace cc | 176 } // namespace cc |
| 178 | 177 |
| 179 #endif // CC_PICTURE_LAYER_TILING_H_ | 178 #endif // CC_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |