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

Unified Diff: cc/resources/picture_layer_tiling_set.cc

Issue 323193002: cc: Don't cleanup the pending twin's low res tiling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scale-collision: . Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set.cc
diff --git a/cc/resources/picture_layer_tiling_set.cc b/cc/resources/picture_layer_tiling_set.cc
index d292d83fab2a53d05ba39d7ca579e3db11c2c0cc..9967868900ef3d9e049e5df3acb1daac2f57dccd 100644
--- a/cc/resources/picture_layer_tiling_set.cc
+++ b/cc/resources/picture_layer_tiling_set.cc
@@ -109,12 +109,8 @@ void PictureLayerTilingSet::SetCanUseLCDText(bool can_use_lcd_text) {
}
PictureLayerTiling* PictureLayerTilingSet::AddTiling(float contents_scale) {
- for (size_t i = 0; i < tilings_.size(); ++i) {
- // TODO(enne): temporary sanity CHECK for http://crbug.com/358350.
- // If a duplicate tiling gets added, then many assumptions in
- // PictureLayerImpl fail.
- CHECK_NE(tilings_[i]->contents_scale(), contents_scale);
- }
+ for (size_t i = 0; i < tilings_.size(); ++i)
+ DCHECK_NE(tilings_[i]->contents_scale(), contents_scale);
tilings_.push_back(PictureLayerTiling::Create(contents_scale,
layer_bounds_,
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698