Chromium Code Reviews| Index: cc/layers/heads_up_display_layer_impl.cc |
| diff --git a/cc/layers/heads_up_display_layer_impl.cc b/cc/layers/heads_up_display_layer_impl.cc |
| index be5af99c71edea84b8c11f2c2d4f5cddf675d94d..42d51fd616684e9e045a436534d6c0b3c967b2ea 100644 |
| --- a/cc/layers/heads_up_display_layer_impl.cc |
| +++ b/cc/layers/heads_up_display_layer_impl.cc |
| @@ -591,6 +591,8 @@ void HeadsUpDisplayLayerImpl::DrawDebugRects( |
| DebugRectHistory* debug_rect_history) const { |
| const std::vector<DebugRect>& debug_rects = debug_rect_history->debug_rects(); |
| SkPaint paint = CreatePaint(); |
| + static int s_currentPaintRectColor = 0; |
|
danakj
2014/01/30 20:20:38
any reason why this is a static variable instead o
|
| + s_currentPaintRectColor++; |
| for (size_t i = 0; i < debug_rects.size(); ++i) { |
| SkColor stroke_color = 0; |
| @@ -600,8 +602,9 @@ void HeadsUpDisplayLayerImpl::DrawDebugRects( |
| switch (debug_rects[i].type) { |
| case PAINT_RECT_TYPE: |
| - stroke_color = DebugColors::PaintRectBorderColor(); |
| - fill_color = DebugColors::PaintRectFillColor(); |
| + stroke_color = |
| + DebugColors::PaintRectBorderColor(s_currentPaintRectColor); |
| + fill_color = DebugColors::PaintRectFillColor(s_currentPaintRectColor); |
| stroke_width = DebugColors::PaintRectBorderWidth(); |
| break; |
| case PROPERTY_CHANGED_RECT_TYPE: |