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_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 int tile_i_; | 116 int tile_i_; |
117 int tile_j_; | 117 int tile_j_; |
118 int left_; | 118 int left_; |
119 int top_; | 119 int top_; |
120 int right_; | 120 int right_; |
121 int bottom_; | 121 int bottom_; |
122 | 122 |
123 friend class PictureLayerTiling; | 123 friend class PictureLayerTiling; |
124 }; | 124 }; |
125 | 125 |
126 Region OpaqueRegionInContentRect(const gfx::Rect&) const; | 126 Region OpaqueRegionInContentRect(gfx::Rect content_rect) const; |
127 | 127 |
128 void Reset() { return tiles_.clear(); } | 128 void Reset() { return tiles_.clear(); } |
129 | 129 |
130 void UpdateTilePriorities( | 130 void UpdateTilePriorities( |
131 WhichTree tree, | 131 WhichTree tree, |
132 gfx::Size device_viewport, | 132 gfx::Size device_viewport, |
133 const gfx::RectF& viewport_in_layer_space, | 133 const gfx::RectF& viewport_in_layer_space, |
134 const gfx::RectF& visible_layer_rect, | 134 const gfx::RectF& visible_layer_rect, |
135 gfx::Size last_layer_bounds, | 135 gfx::Size last_layer_bounds, |
136 gfx::Size current_layer_bounds, | 136 gfx::Size current_layer_bounds, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 friend class CoverageIterator; | 173 friend class CoverageIterator; |
174 | 174 |
175 private: | 175 private: |
176 DISALLOW_ASSIGN(PictureLayerTiling); | 176 DISALLOW_ASSIGN(PictureLayerTiling); |
177 }; | 177 }; |
178 | 178 |
179 } // namespace cc | 179 } // namespace cc |
180 | 180 |
181 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 181 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |