| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SKDEBUGGER_H_ | 10 #ifndef SKDEBUGGER_H_ |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 void setUserMatrix(SkMatrix userMatrix) { | 73 void setUserMatrix(SkMatrix userMatrix) { |
| 74 // Should this live in debugger instead? | 74 // Should this live in debugger instead? |
| 75 fDebugCanvas->setUserMatrix(userMatrix); | 75 fDebugCanvas->setUserMatrix(userMatrix); |
| 76 } | 76 } |
| 77 | 77 |
| 78 int getCommandAtPoint(int x, int y, int index) { | 78 int getCommandAtPoint(int x, int y, int index) { |
| 79 return fDebugCanvas->getCommandAtPoint(x, y, index); | 79 return fDebugCanvas->getCommandAtPoint(x, y, index); |
| 80 } | 80 } |
| 81 | 81 |
| 82 const SkTDArray<SkString*>* getCommandInfo(int index) const { | 82 SkTDArray<SkString*>* getCommandInfo(int index) { |
| 83 return fDebugCanvas->getCommandInfo(index); | 83 return fDebugCanvas->getCommandInfo(index); |
| 84 } | 84 } |
| 85 | 85 |
| 86 const SkMatrix& getCurrentMatrix() { | 86 const SkMatrix& getCurrentMatrix() { |
| 87 return fDebugCanvas->getCurrentMatrix(); | 87 return fDebugCanvas->getCurrentMatrix(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 const SkIRect& getCurrentClip() { | 90 const SkIRect& getCurrentClip() { |
| 91 return fDebugCanvas->getCurrentClip(); | 91 return fDebugCanvas->getCurrentClip(); |
| 92 } | 92 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 SkDebugCanvas* fDebugCanvas; | 132 SkDebugCanvas* fDebugCanvas; |
| 133 SkPicture* fPicture; | 133 SkPicture* fPicture; |
| 134 | 134 |
| 135 int fIndex; | 135 int fIndex; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 | 138 |
| 139 #endif /* SKDEBUGGER_H_ */ | 139 #endif /* SKDEBUGGER_H_ */ |
| OLD | NEW |