Index: src/utils/debugger/SkDebugCanvas.cpp |
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp |
index c6fcb07b8c46ba5106d14ec38588f030fd127dca..0e07084e43ad77e6088f2816e35e99c64261138b 100644 |
--- a/src/utils/debugger/SkDebugCanvas.cpp |
+++ b/src/utils/debugger/SkDebugCanvas.cpp |
@@ -153,22 +153,22 @@ void SkDebugCanvas::drawTo(SkCanvas* canvas, int index) { |
canvas->clipRect(rect, SkRegion::kReplace_Op ); |
applyUserTransform(canvas); |
fOutstandingSaveCount = 0; |
+ } |
- // The setting of the draw filter has to go here (rather than in |
- // SkRasterWidget) due to the canvas restores this class performs. |
- // Since the draw filter is stored in the layer stack if we |
- // call setDrawFilter on anything but the root layer odd things happen |
- if (fOverdrawViz) { |
- if (NULL == fOverdrawFilter) { |
- fOverdrawFilter = new OverdrawFilter; |
- } |
+ // The setting of the draw filter has to go here (rather than in |
+ // SkRasterWidget) due to the canvas restores this class performs. |
+ // Since the draw filter is stored in the layer stack if we |
+ // call setDrawFilter on anything but the root layer odd things happen. |
+ if (fOverdrawViz) { |
+ if (NULL == fOverdrawFilter) { |
+ fOverdrawFilter = new OverdrawFilter; |
+ } |
- if (fOverdrawFilter != canvas->getDrawFilter()) { |
- canvas->setDrawFilter(fOverdrawFilter); |
- } |
- } else { |
- canvas->setDrawFilter(NULL); |
+ if (fOverdrawFilter != canvas->getDrawFilter()) { |
+ canvas->setDrawFilter(fOverdrawFilter); |
} |
+ } else { |
+ canvas->setDrawFilter(NULL); |
} |
for (; i <= index; i++) { |