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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 } | 150 } |
151 | 151 |
152 return *this; | 152 return *this; |
153 } | 153 } |
154 | 154 |
155 PictureLayerTilingSet::Iterator::operator bool() const { | 155 PictureLayerTilingSet::Iterator::operator bool() const { |
156 return current_tiling_ < static_cast<int>(set_->tilings_.size()) || | 156 return current_tiling_ < static_cast<int>(set_->tilings_.size()) || |
157 region_iter_.has_rect(); | 157 region_iter_.has_rect(); |
158 } | 158 } |
159 | 159 |
| 160 void PictureLayerTilingSet::UpdateTilePriorities( |
| 161 const gfx::Size& view_port, |
| 162 float layer_content_scaleX, |
| 163 float layer_content_scaleY, |
| 164 const gfx::Transform& last_screen_transform, |
| 165 const gfx::Transform& current_screen_transform, |
| 166 double time_delta) { |
| 167 for (size_t i = 0; i < tilings_.size(); ++i) { |
| 168 tilings_[i]->UpdateTilePriorities( |
| 169 view_port, layer_content_scaleX, layer_content_scaleY, |
| 170 last_screen_transform, current_screen_transform, time_delta); |
| 171 } |
| 172 } |
| 173 |
160 } // namespace cc | 174 } // namespace cc |
OLD | NEW |