aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2014-11-07 12:09:20 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-07 12:09:20 -0800
commit1931ec5b5dac68f1e452af0c65161bdce35b2dec (patch)
treee6e25507d3a1ca1a6f4d984cd72c6d7203c6af57 /debugger
parentee0ea3f0dd878fb5c8354924c0c8627ab2a95c41 (diff)
SkDrawCommand scrubbing
Remove unused ctor, constify, etc. R=robertphillips@google.com Review URL: https://codereview.chromium.org/706363002
Diffstat (limited to 'debugger')
-rw-r--r--debugger/QT/SkDebuggerGUI.cpp3
-rw-r--r--debugger/SkDebugger.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index 59bfcca5fe..4901d62389 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -689,8 +689,7 @@ void SkDebuggerGUI::registerListClick(QListWidgetItem *item) {
fCanvasWidget.drawTo(currentRow);
fImageWidget.draw();
}
- SkTDArray<SkString*> *currInfo = fDebugger.getCommandInfo(
- currentRow);
+ const SkTDArray<SkString*> *currInfo = fDebugger.getCommandInfo(currentRow);
/* TODO(chudy): Add command type before parameters. Rename v
* to something more informative. */
diff --git a/debugger/SkDebugger.h b/debugger/SkDebugger.h
index 53b480a28d..5359b10fe9 100644
--- a/debugger/SkDebugger.h
+++ b/debugger/SkDebugger.h
@@ -79,7 +79,7 @@ public:
return fDebugCanvas->getCommandAtPoint(x, y, index);
}
- SkTDArray<SkString*>* getCommandInfo(int index) {
+ const SkTDArray<SkString*>* getCommandInfo(int index) const {
return fDebugCanvas->getCommandInfo(index);
}