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

Unified Diff: trunk/src/cc/resources/picture_layer_tiling_set.cc

Issue 13316003: Revert 191364 "cc: Add ‘chromium_code’: 1 to cc.gyp and cc_t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 9 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 | « trunk/src/cc/quads/draw_quad_unittest.cc ('k') | trunk/src/cc/resources/picture_pile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/cc/resources/picture_layer_tiling_set.cc
===================================================================
--- trunk/src/cc/resources/picture_layer_tiling_set.cc (revision 191370)
+++ trunk/src/cc/resources/picture_layer_tiling_set.cc (working copy)
@@ -4,8 +4,6 @@
#include "cc/resources/picture_layer_tiling_set.h"
-#include <limits>
-
namespace cc {
namespace {
@@ -135,11 +133,7 @@
}
}
- DCHECK_LE(set_->tilings_.size(),
- static_cast<size_t>(std::numeric_limits<int>::max()));
-
- int num_tilings = set_->tilings_.size();
- if (ideal_tiling_ == num_tilings && ideal_tiling_ > 0)
+ if (ideal_tiling_ == set_->tilings_.size() && ideal_tiling_ > 0)
ideal_tiling_--;
++(*this);
« no previous file with comments | « trunk/src/cc/quads/draw_quad_unittest.cc ('k') | trunk/src/cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698