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

Side by Side Diff: cc/resources/picture_layer_tiling.cc

Issue 441033002: cc: Clear tile priorities when tiling is reset. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 6 years, 4 months 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
« no previous file with comments | « cc/resources/picture_layer_tiling.h ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/resources/picture_layer_tiling.h" 5 #include "cc/resources/picture_layer_tiling.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <limits> 9 #include <limits>
10 10
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 391
392 return texture_rect; 392 return texture_rect;
393 } 393 }
394 394
395 gfx::Size PictureLayerTiling::CoverageIterator::texture_size() const { 395 gfx::Size PictureLayerTiling::CoverageIterator::texture_size() const {
396 return tiling_->tiling_data_.max_texture_size(); 396 return tiling_->tiling_data_.max_texture_size();
397 } 397 }
398 398
399 void PictureLayerTiling::Reset() { 399 void PictureLayerTiling::Reset() {
400 live_tiles_rect_ = gfx::Rect(); 400 live_tiles_rect_ = gfx::Rect();
401 for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it)
402 ReleaseTile(it->second.get(), client_->GetTree());
401 tiles_.clear(); 403 tiles_.clear();
402 } 404 }
403 405
404 gfx::Rect PictureLayerTiling::ComputeSkewport( 406 gfx::Rect PictureLayerTiling::ComputeSkewport(
405 double current_frame_time_in_seconds, 407 double current_frame_time_in_seconds,
406 const gfx::Rect& visible_rect_in_content_space) const { 408 const gfx::Rect& visible_rect_in_content_space) const {
407 gfx::Rect skewport = visible_rect_in_content_space; 409 gfx::Rect skewport = visible_rect_in_content_space;
408 if (last_impl_frame_time_in_seconds_ == 0.0) 410 if (last_impl_frame_time_in_seconds_ == 0.0)
409 return skewport; 411 return skewport;
410 412
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 DCHECK(*this); 1024 DCHECK(*this);
1023 do { 1025 do {
1024 ++tile_iterator_; 1026 ++tile_iterator_;
1025 } while (tile_iterator_ != tiling_->eviction_tiles_cache_.end() && 1027 } while (tile_iterator_ != tiling_->eviction_tiles_cache_.end() &&
1026 (!(*tile_iterator_)->HasResources())); 1028 (!(*tile_iterator_)->HasResources()));
1027 1029
1028 return *this; 1030 return *this;
1029 } 1031 }
1030 1032
1031 } // namespace cc 1033 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling.h ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698