Debugger improvements
This CL:
improves the 'SaveAs' functionality
allows switching between # and offset indexing in the command list
minor nit cleanup
R=bsalomon@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/211383003
git-svn-id: http://skia.googlecode.com/svn/trunk@13950 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/SkDebugger.h b/debugger/SkDebugger.h
index 20c4a78..94300d8 100644
--- a/debugger/SkDebugger.h
+++ b/debugger/SkDebugger.h
@@ -48,6 +48,10 @@
return fDebugCanvas->getDrawCommandsAsStrings();
}
+ SkTDArray<size_t>* getDrawCommandOffsets() {
+ return fDebugCanvas->getDrawCommandOffsets();
+ }
+
const SkTDArray<SkDrawCommand*>& getDrawCommands() const {
return fDebugCanvas->getDrawCommands();
}