aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/SkDebugCanvas.h
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-01 18:18:49 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-01 18:18:49 +0000
commit50c84da68b17647371a81593402e897d639989e4 (patch)
tree14cba9453d56e9f584d66101c52b9ad83fe7efa9 /debugger/SkDebugCanvas.h
parent20edf38a9ea04b990e0412654e342ced45d3ef15 (diff)
Add getDrawCommandAt and setDrawCommandAt to SkDebugCanvas
Diffstat (limited to 'debugger/SkDebugCanvas.h')
-rw-r--r--debugger/SkDebugCanvas.h14
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;