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 #include "cc/picture_layer_tiling_set.h" | 5 #include "cc/picture_layer_tiling_set.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 PictureLayerTilingSet::PictureLayerTilingSet( | 9 PictureLayerTilingSet::PictureLayerTilingSet( |
10 PictureLayerTilingClient * client) | 10 PictureLayerTilingClient * client) |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool first_time = current_tiling_ < 0; | 98 bool first_time = current_tiling_ < 0; |
99 | 99 |
100 if (!*this && !first_time) | 100 if (!*this && !first_time) |
101 return *this; | 101 return *this; |
102 | 102 |
103 if (tiling_iter_) | 103 if (tiling_iter_) |
104 ++tiling_iter_; | 104 ++tiling_iter_; |
105 | 105 |
106 // Loop until we find a valid place to stop. | 106 // Loop until we find a valid place to stop. |
107 while (true) { | 107 while (true) { |
108 while (tiling_iter_ && !tiling_iter_->resource_id()) { | 108 while (tiling_iter_ && !tiling_iter_->GetResourceId()) { |
109 missing_region_.Union(tiling_iter_.geometry_rect()); | 109 missing_region_.Union(tiling_iter_.geometry_rect()); |
110 ++tiling_iter_; | 110 ++tiling_iter_; |
111 } | 111 } |
112 if (tiling_iter_) | 112 if (tiling_iter_) |
113 return *this; | 113 return *this; |
114 | 114 |
115 // If the set of current rects for this tiling is done, go to the next | 115 // If the set of current rects for this tiling is done, go to the next |
116 // tiling and set up to iterate through all of the remaining holes. | 116 // tiling and set up to iterate through all of the remaining holes. |
117 // This will also happen the first time through the loop. | 117 // This will also happen the first time through the loop. |
118 if (!region_iter_.has_rect()) { | 118 if (!region_iter_.has_rect()) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 const gfx::Transform& current_screen_transform, | 165 const gfx::Transform& current_screen_transform, |
166 double time_delta) { | 166 double time_delta) { |
167 for (size_t i = 0; i < tilings_.size(); ++i) { | 167 for (size_t i = 0; i < tilings_.size(); ++i) { |
168 tilings_[i]->UpdateTilePriorities( | 168 tilings_[i]->UpdateTilePriorities( |
169 device_viewport, layer_content_scale_x, layer_content_scale_y, | 169 device_viewport, layer_content_scale_x, layer_content_scale_y, |
170 last_screen_transform, current_screen_transform, time_delta); | 170 last_screen_transform, current_screen_transform, time_delta); |
171 } | 171 } |
172 } | 172 } |
173 | 173 |
174 } // namespace cc | 174 } // namespace cc |
OLD | NEW |