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

Unified Diff: cc/resources/picture_layer_tiling_set.cc

Issue 328383002: Merge 276305 "cc: Don't cleanup the pending twin's low res tiling." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985/src/
Patch Set: 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.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
===================================================================
--- cc/resources/picture_layer_tiling_set.cc (revision 276694)
+++ cc/resources/picture_layer_tiling_set.cc (working copy)
@@ -109,12 +109,8 @@
}
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.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698