Index: debugger/SkDebugger.cpp |
diff --git a/debugger/SkDebugger.cpp b/debugger/SkDebugger.cpp |
index 43823c12f06eab1ebc595499f26fd35bdd49f951..fc61ddade39a2fa72becd5dd9fe27c4e36479c7a 100644 |
--- a/debugger/SkDebugger.cpp |
+++ b/debugger/SkDebugger.cpp |
@@ -49,19 +49,11 @@ SkPicture* SkDebugger::copyPicture() { |
fDebugCanvas->setOverdrawViz(false); |
bool pathOps = fDebugCanvas->getAllowSimplifyClip(); |
fDebugCanvas->setAllowSimplifyClip(false); |
- int saveCount = fDebugCanvas->getOutstandingSaveCount(); |
- fDebugCanvas->setOutstandingSaveCount(0); |
fDebugCanvas->draw(canvas); |
- int temp = fDebugCanvas->getOutstandingSaveCount(); |
- for (int i = 0; i < temp; ++i) { |
- canvas->restore(); |
- } |
- |
fDebugCanvas->setMegaVizMode(vizMode); |
fDebugCanvas->setOverdrawViz(overDraw); |
- fDebugCanvas->setOutstandingSaveCount(saveCount); |
fDebugCanvas->setAllowSimplifyClip(pathOps); |
return recorder.endRecording(); |