Index: src/utils/debugger/SkDrawCommand.h |
diff --git a/src/utils/debugger/SkDrawCommand.h b/src/utils/debugger/SkDrawCommand.h |
index def0db4d8a7dd319e97040668476281059835338..1d3d373ac8e9839fa3edb689a130fe68a750ff14 100644 |
--- a/src/utils/debugger/SkDrawCommand.h |
+++ b/src/utils/debugger/SkDrawCommand.h |
@@ -41,6 +41,9 @@ public: |
SkTDArray<SkString*>* Info() {return &fInfo; }; |
virtual void execute(SkCanvas* canvas) = 0; |
virtual void vizExecute(SkCanvas* canvas) { }; |
+ |
+ virtual void setUserMatrix(const SkMatrix& userMtx) { }; |
+ |
/** Does nothing by default, but used by save() and restore()-type |
subclasses to track unresolved save() calls. */ |
virtual void trackSaveState(int* state) { }; |
@@ -592,8 +595,10 @@ private: |
class SkSetMatrixCommand : public SkDrawCommand { |
public: |
SkSetMatrixCommand(const SkMatrix& matrix); |
+ virtual void setUserMatrix(const SkMatrix&) SK_OVERRIDE; |
virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
private: |
+ SkMatrix fUserMatrix; |
SkMatrix fMatrix; |
typedef SkDrawCommand INHERITED; |