Index: debugger/SkDebugger.cpp |
diff --git a/debugger/SkDebugger.cpp b/debugger/SkDebugger.cpp |
index f4730d61b5306116c2eb933f9a96d2cce04c3357..394c0ad7c82e70c25949947b985ca4ab8bdb3ead 100644 |
--- a/debugger/SkDebugger.cpp |
+++ b/debugger/SkDebugger.cpp |
@@ -49,6 +49,8 @@ SkPicture* SkDebugger::copyPicture() { |
fDebugCanvas->setMegaVizMode(false); |
bool overDraw = fDebugCanvas->getOverdrawViz(); |
fDebugCanvas->setOverdrawViz(false); |
+ bool pathOps = fDebugCanvas->getAllowSimplifyClip(); |
+ fDebugCanvas->setAllowSimplifyClip(false); |
int saveCount = fDebugCanvas->getOutstandingSaveCount(); |
fDebugCanvas->setOutstandingSaveCount(0); |
@@ -62,6 +64,7 @@ SkPicture* SkDebugger::copyPicture() { |
fDebugCanvas->setMegaVizMode(vizMode); |
fDebugCanvas->setOverdrawViz(overDraw); |
fDebugCanvas->setOutstandingSaveCount(saveCount); |
+ fDebugCanvas->setAllowSimplifyClip(pathOps); |
return recorder.endRecording(); |
} |
@@ -148,3 +151,8 @@ void SkDebugger::getOverviewText(const SkTDArray<double>* typeTimes, |
overview->appendS32(pictureHeight()); |
overview->append("px"); |
} |
+ |
+void SkDebugger::getClipStackText(SkString* clipStack) { |
+ clipStack->set(fDebugCanvas->clipStackData()); |
+} |
+ |