Index: debugger/QT/SkDebuggerGUI.cpp |
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp |
index 01d165a3d330b6994253e908cab7ac1b6902e974..0f816eec7cebd55d8b726e903f180158b9642437 100644 |
--- a/debugger/QT/SkDebuggerGUI.cpp |
+++ b/debugger/QT/SkDebuggerGUI.cpp |
@@ -101,6 +101,7 @@ SkDebuggerGUI::SkDebuggerGUI(QWidget *parent) : |
connect(fSettingsWidget.getRasterCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionRasterWidget(bool))); |
connect(fSettingsWidget.getOverdrawVizCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionOverdrawVizWidget(bool))); |
connect(fSettingsWidget.getMegaVizCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionMegaVizWidget(bool))); |
+ connect(fSettingsWidget.getPathOpsCheckBox(), SIGNAL(toggled(bool)), this, SLOT(actionPathOpsWidget(bool))); |
connect(&fActionPause, SIGNAL(toggled(bool)), this, SLOT(pauseDrawing(bool))); |
connect(&fActionCreateBreakpoint, SIGNAL(activated()), this, SLOT(toggleBreakpoint())); |
connect(&fActionShowDeletes, SIGNAL(triggered()), this, SLOT(showDeletes())); |
@@ -415,6 +416,7 @@ void SkDebuggerGUI::actionProfile() { |
} |
setupOverviewText(picture->typeTimes(), picture->totTime(), kNumRepeats); |
+ setupClipStackText(); |
} |
void SkDebuggerGUI::actionCancel() { |
@@ -535,6 +537,11 @@ void SkDebuggerGUI::actionMegaVizWidget(bool isToggled) { |
fCanvasWidget.update(); |
} |
+void SkDebuggerGUI::actionPathOpsWidget(bool isToggled) { |
+ fDebugger.setPathOps(isToggled); |
+ fCanvasWidget.update(); |
+} |
+ |
void SkDebuggerGUI::actionTextureFilter() { |
SkPaint::FilterLevel level; |
bool enabled = fSettingsWidget.getFilterOverride(&level); |
@@ -662,6 +669,7 @@ void SkDebuggerGUI::registerListClick(QListWidgetItem *item) { |
fInspectorWidget.setText(info, SkInspectorWidget::kDetail_TabType); |
fInspectorWidget.setDisabled(false); |
} |
+ setupClipStackText(); |
} |
} |
@@ -1043,6 +1051,12 @@ void SkDebuggerGUI::setupOverviewText(const SkTDArray<double>* typeTimes, |
fInspectorWidget.setText(overview.c_str(), SkInspectorWidget::kOverview_TabType); |
} |
+void SkDebuggerGUI::setupClipStackText() { |
+ SkString clipStack; |
+ fDebugger.getClipStackText(&clipStack); |
+ fInspectorWidget.setText(clipStack.c_str(), SkInspectorWidget::kClipStack_TabType); |
+} |
+ |
void SkDebuggerGUI::setupComboBox(SkTArray<SkString>* command) { |
fFilter.clear(); |
fFilter.addItem("--Filter By Available Commands--"); |