Chromium Code Reviews| Index: cc/resources/picture_layer_tiling_set.h |
| diff --git a/cc/resources/picture_layer_tiling_set.h b/cc/resources/picture_layer_tiling_set.h |
| index d37d9d593565d7b1460ac0d264056c950b5a76cd..8ea0cca263a8112094d358b7d69b5153e1bfa374 100644 |
| --- a/cc/resources/picture_layer_tiling_set.h |
| +++ b/cc/resources/picture_layer_tiling_set.h |
| @@ -24,6 +24,10 @@ class CC_EXPORT PictureLayerTilingSet { |
| struct TilingRange { |
| TilingRange(size_t start, size_t end) : start(start), end(end) {} |
| + bool IsIndexWithinRange(size_t index) const { |
| + return index >= start && index < end; |
| + } |
|
reveman
2014/08/01 17:54:47
I don't think we need this. I can't see a reason w
vmpstr
2014/08/01 19:39:50
We iterate two of the ranges in reverse order, so
|
| + |
| size_t start; |
| size_t end; |
| }; |