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

Unified Diff: cc/picture_layer_tiling.cc

Issue 11946008: cc: Fix tree activation when invisible layers exist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unit test Created 7 years, 11 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 | « no previous file | cc/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling.cc
diff --git a/cc/picture_layer_tiling.cc b/cc/picture_layer_tiling.cc
index 349cdb289ccb2a1d3f462136902b549e5500b8ee..1b2668c00d1a6601a5b9e4e99a4fe638492f6712 100644
--- a/cc/picture_layer_tiling.cc
+++ b/cc/picture_layer_tiling.cc
@@ -140,8 +140,8 @@ PictureLayerTiling::Iterator::Iterator()
tile_j_(0),
left_(0),
top_(0),
- right_(0),
- bottom_(0) {
+ right_(-1),
+ bottom_(-1) {
}
PictureLayerTiling::Iterator::Iterator(const PictureLayerTiling* tiling,
@@ -155,8 +155,8 @@ PictureLayerTiling::Iterator::Iterator(const PictureLayerTiling* tiling,
tile_j_(0),
left_(0),
top_(0),
- right_(0),
- bottom_(0) {
+ right_(-1),
+ bottom_(-1) {
DCHECK(tiling_);
if (dest_rect_.IsEmpty())
return;
« no previous file with comments | « no previous file | cc/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698