diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-12 15:33:40 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-12 15:33:40 +0000 |
commit | e428f9b1132c12299c204a333192495d7e748511 (patch) | |
tree | 1a92cd6b8da40382f6b46bf2e02399abedd16ee4 /debugger/QT/SkDebuggerGUI.cpp | |
parent | 167876ea18687f13a768f0e23d369ea7cca0e47b (diff) |
Fix debugger build errors/warnings
https://codereview.appspot.com/7729045/
git-svn-id: http://skia.googlecode.com/svn/trunk@8105 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger/QT/SkDebuggerGUI.cpp')
-rw-r--r-- | debugger/QT/SkDebuggerGUI.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp index d3c6fadbd0..3d8efa41d8 100644 --- a/debugger/QT/SkDebuggerGUI.cpp +++ b/debugger/QT/SkDebuggerGUI.cpp @@ -404,7 +404,7 @@ void SkDebuggerGUI::actionProfile() { item->setData(Qt::UserRole + 4, 100.0*temp); } - setupOverviewText(picture.typeTimes(), picture.totTime()); + setupOverviewText(picture.typeTimes(), picture.totTime(), kNumRepeats); } void SkDebuggerGUI::actionCancel() { @@ -1032,7 +1032,7 @@ void SkDebuggerGUI::loadPicture(const SkString& fileName) { setupListWidget(commands); setupComboBox(commands); - setupOverviewText(NULL, 0.0); + setupOverviewText(NULL, 0.0, 1); fInspectorWidget.setDisabled(false); fSettingsWidget.setDisabled(false); fMenuEdit.setDisabled(false); @@ -1070,9 +1070,11 @@ void SkDebuggerGUI::setupListWidget(SkTArray<SkString>* command) { } } -void SkDebuggerGUI::setupOverviewText(const SkTDArray<double>* typeTimes, double totTime) { +void SkDebuggerGUI::setupOverviewText(const SkTDArray<double>* typeTimes, + double totTime, + int numRuns) { SkString overview; - fDebugger.getOverviewText(typeTimes, totTime, &overview); + fDebugger.getOverviewText(typeTimes, totTime, &overview, numRuns); fInspectorWidget.setText(overview.c_str(), SkInspectorWidget::kOverview_TabType); } |