diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-01 18:18:49 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-01 18:18:49 +0000 |
commit | 50c84da68b17647371a81593402e897d639989e4 (patch) | |
tree | 14cba9453d56e9f584d66101c52b9ad83fe7efa9 /debugger/SkDebugCanvas.h | |
parent | 20edf38a9ea04b990e0412654e342ced45d3ef15 (diff) |
Add getDrawCommandAt and setDrawCommandAt to SkDebugCanvas
https://codereview.chromium.org/13393005/
git-svn-id: http://skia.googlecode.com/svn/trunk@8462 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger/SkDebugCanvas.h')
-rw-r--r-- | debugger/SkDebugCanvas.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debugger/SkDebugCanvas.h b/debugger/SkDebugCanvas.h index a6afec3875..841d3c9b77 100644 --- a/debugger/SkDebugCanvas.h +++ b/debugger/SkDebugCanvas.h @@ -70,12 +70,25 @@ public: int getCommandAtPoint(int x, int y, int index); /** + Removes the command at the specified index + @param index The index of the command to delete + */ + void deleteDrawCommandAt(int index); + + /** Returns the draw command at the given index. @param index The index of the command */ SkDrawCommand* getDrawCommandAt(int index); /** + Sets the draw command for a given index. + @param index The index to overwrite + @param command The new command + */ + void setDrawCommandAt(int index, SkDrawCommand* command); + + /** Returns information about the command at the given index. @param index The index of the command */ @@ -89,6 +102,7 @@ public: /** Returns the vector of draw commands + DEPRECATED: please use getDrawCommandAt and getSize instead */ const SkTDArray<SkDrawCommand*>& getDrawCommands() const; |