Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: cc/picture_layer_tiling_set.cc

Issue 11414238: implement the logic to set tile priorities based on current matrix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 const gfx::Transform& last_transform,
163 const gfx::Transform& current_transform,
164 double time_delta) {
165 for (size_t i = 0; i < tilings_.size(); ++i) {
166 tilings_[i]->UpdateTilePriorities(
167 view_port, last_transform, current_transform, time_delta);
168 }
169 }
170
160 } // namespace cc 171 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698