Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2211)

Unified Diff: debugger/SkDebugCanvas.h

Issue 13393005: Add getDrawCommandAt and setDrawCommandAt to SkDebugCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fix comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/SkDebugCanvas.h
===================================================================
--- debugger/SkDebugCanvas.h (revision 8452)
+++ debugger/SkDebugCanvas.h (working copy)
@@ -70,12 +70,25 @@
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 @@
/**
Returns the vector of draw commands
+ DEPRECATED: please use getDrawCommandAt and getSize instead
*/
const SkTDArray<SkDrawCommand*>& getDrawCommands() const;
« no previous file with comments | « no previous file | debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698