Index: cc/resources/tile.h |
diff --git a/cc/resources/tile.h b/cc/resources/tile.h |
index 30916fa5f034032d2e2fc1144de2530e8655ed37..28a9f1e721cd4925be2a6610f388faa6a19f84df 100644 |
--- a/cc/resources/tile.h |
+++ b/cc/resources/tile.h |
@@ -72,7 +72,7 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> { |
scoped_ptr<base::Value> AsValue() const; |
bool IsReadyToDraw() const { |
- for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) { |
+ for (int mode = 0; mode < RasterMode_ARRAYSIZE; ++mode) { |
if (managed_state_.tile_versions[mode].IsReadyToDraw()) |
return true; |
} |
@@ -80,7 +80,7 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> { |
} |
const ManagedTileState::TileVersion& GetTileVersionForDrawing() const { |
- for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) { |
+ for (int mode = 0; mode < RasterMode_ARRAYSIZE; ++mode) { |
if (managed_state_.tile_versions[mode].IsReadyToDraw()) |
return managed_state_.tile_versions[mode]; |
} |
@@ -137,7 +137,7 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> { |
float contents_scale_; |
gfx::Rect opaque_rect_; |
- TilePriority priority_[NUM_BIN_PRIORITIES]; |
+ TilePriority priority_[WhichTree_ARRAYSIZE]; |
ManagedTileState managed_state_; |
int layer_id_; |
int source_frame_number_; |