Breakdown profile time by command type in the overview pane
https://codereview.appspot.com/6851073/
git-svn-id: http://skia.googlecode.com/svn/trunk@6492 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/SkDebugger.h b/debugger/SkDebugger.h
index 67fa6a0..a0a1682 100644
--- a/debugger/SkDebugger.h
+++ b/debugger/SkDebugger.h
@@ -12,6 +12,7 @@
#include "SkDebugCanvas.h"
#include "SkPicture.h"
+#include "SkTArray.h"
class SkDebugger {
public:
@@ -41,10 +42,14 @@
fDebugCanvas->toggleCommand(index, isVisible);
}
- SkTDArray<SkString*>* getDrawCommands() {
+ SkTArray<SkString>* getDrawCommandsAsStrings() {
return fDebugCanvas->getDrawCommandsAsStrings();
}
+ const SkTDArray<SkDrawCommand*>& getDrawCommands() const {
+ return fDebugCanvas->getDrawCommands();
+ }
+
void highlightCurrentCommand(bool on) {
fDebugCanvas->toggleFilter(on);
}