Index: debugger/QT/SkDebuggerGUI.cpp |
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp |
index 01d165a3d330b6994253e908cab7ac1b6902e974..ff343a410ebdea9ad96e08c3651b5962ab91f0e6 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); |
robertphillips
2014/05/16 12:21:24
this-> ?
caryclark
2014/05/16 13:49:02
Since the surrounding isn't written 'this' way, ch
|
+ 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,11 @@ void SkDebuggerGUI::registerListClick(QListWidgetItem *item) { |
fInspectorWidget.setText(info, SkInspectorWidget::kDetail_TabType); |
fInspectorWidget.setDisabled(false); |
} |
robertphillips
2014/05/16 12:21:24
Can this just be this->setupClipStackText?
caryclark
2014/05/16 13:49:02
I completely missed that!
|
+ SkString clipStack; |
+ fDebugger.getClipStackText(&clipStack); |
+ QString qClipStack; |
+ qClipStack.append(clipStack.c_str()); |
+ fInspectorWidget.setText(qClipStack, SkInspectorWidget::kClipStack_TabType); |
} |
} |
@@ -1043,6 +1055,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--"); |