Index: debugger/SkDebugCanvas.cpp |
=================================================================== |
--- debugger/SkDebugCanvas.cpp (revision 8452) |
+++ debugger/SkDebugCanvas.cpp (working copy) |
@@ -207,11 +207,23 @@ |
fIndex = index; |
} |
+void SkDebugCanvas::deleteDrawCommandAt(int index) { |
+ SkASSERT(index < fCommandVector.count()); |
+ delete fCommandVector[index]; |
+ fCommandVector.remove(index); |
+} |
+ |
SkDrawCommand* SkDebugCanvas::getDrawCommandAt(int index) { |
SkASSERT(index < fCommandVector.count()); |
return fCommandVector[index]; |
} |
+void SkDebugCanvas::setDrawCommandAt(int index, SkDrawCommand* command) { |
+ SkASSERT(index < fCommandVector.count()); |
+ delete fCommandVector[index]; |
+ fCommandVector[index] = command; |
+} |
+ |
SkTDArray<SkString*>* SkDebugCanvas::getCommandInfo(int index) { |
SkASSERT(index < fCommandVector.count()); |
return fCommandVector[index]->Info(); |