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

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 665423002: cc: Disable low res in non-smoothness mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 6 years, 2 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
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/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 10
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 } 1443 }
1444 1444
1445 // Find high and low res tilings and initialize the iterators. 1445 // Find high and low res tilings and initialize the iterators.
1446 for (size_t i = 0; i < layer_->tilings_->num_tilings(); ++i) { 1446 for (size_t i = 0; i < layer_->tilings_->num_tilings(); ++i) {
1447 PictureLayerTiling* tiling = layer_->tilings_->tiling_at(i); 1447 PictureLayerTiling* tiling = layer_->tilings_->tiling_at(i);
1448 if (tiling->resolution() == HIGH_RESOLUTION) { 1448 if (tiling->resolution() == HIGH_RESOLUTION) {
1449 iterators_[HIGH_RES] = 1449 iterators_[HIGH_RES] =
1450 PictureLayerTiling::TilingRasterTileIterator(tiling); 1450 PictureLayerTiling::TilingRasterTileIterator(tiling);
1451 } 1451 }
1452 1452
1453 if (tiling->resolution() == LOW_RESOLUTION) { 1453 if (prioritize_low_res && tiling->resolution() == LOW_RESOLUTION) {
1454 iterators_[LOW_RES] = 1454 iterators_[LOW_RES] =
1455 PictureLayerTiling::TilingRasterTileIterator(tiling); 1455 PictureLayerTiling::TilingRasterTileIterator(tiling);
1456 } 1456 }
1457 } 1457 }
1458 1458
1459 if (prioritize_low_res) { 1459 if (prioritize_low_res) {
1460 stages_[0].iterator_type = LOW_RES; 1460 stages_[0].iterator_type = LOW_RES;
1461 stages_[0].tile_type = TilePriority::NOW; 1461 stages_[0].tile_type = TilePriority::NOW;
1462 1462
1463 stages_[1].iterator_type = HIGH_RES; 1463 stages_[1].iterator_type = HIGH_RES;
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); 1685 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange();
1686 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; 1686 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start;
1687 return tiling_range.end - 1 - current_tiling_range_offset; 1687 return tiling_range.end - 1 - current_tiling_range_offset;
1688 } 1688 }
1689 } 1689 }
1690 NOTREACHED(); 1690 NOTREACHED();
1691 return 0; 1691 return 0;
1692 } 1692 }
1693 1693
1694 } // namespace cc 1694 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | cc/layers/picture_layer_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698