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

Unified Diff: cc/resources/picture_layer_tiling_set.h

Issue 428533008: cc: Remove vectors from tiling eviction tile iterator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
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;
};

Powered by Google App Engine
This is Rietveld 408576698