| 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 26 matching lines...) Expand all Loading... |
| 37 void rewind(); | 37 void rewind(); |
| 38 | 38 |
| 39 bool isCommandVisible(int index) { | 39 bool isCommandVisible(int index) { |
| 40 return fDebugCanvas->getDrawCommandVisibilityAt(index); | 40 return fDebugCanvas->getDrawCommandVisibilityAt(index); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void setCommandVisible(int index, bool isVisible) { | 43 void setCommandVisible(int index, bool isVisible) { |
| 44 fDebugCanvas->toggleCommand(index, isVisible); | 44 fDebugCanvas->toggleCommand(index, isVisible); |
| 45 } | 45 } |
| 46 | 46 |
| 47 SkTArray<SkString>* getDrawCommandsAsStrings() { | 47 void getDrawCommandsAsStrings(SkTArray<SkString>* outCommandStrings) { |
| 48 return fDebugCanvas->getDrawCommandsAsStrings(); | 48 fDebugCanvas->getDrawCommandsAsStrings(outCommandStrings); |
| 49 } | 49 } |
| 50 | 50 |
| 51 SkTDArray<size_t>* getDrawCommandOffsets() { | 51 void getDrawCommandOffsets(SkTDArray<size_t>* outCommandOffsets) { |
| 52 return fDebugCanvas->getDrawCommandOffsets(); | 52 fDebugCanvas->getDrawCommandOffsets(outCommandOffsets); |
| 53 } | 53 } |
| 54 | 54 |
| 55 const SkTDArray<SkDrawCommand*>& getDrawCommands() const { | 55 const SkTDArray<SkDrawCommand*>& getDrawCommands() const { |
| 56 return fDebugCanvas->getDrawCommands(); | 56 return fDebugCanvas->getDrawCommands(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void highlightCurrentCommand(bool on) { | 59 void highlightCurrentCommand(bool on) { |
| 60 fDebugCanvas->toggleFilter(on); | 60 fDebugCanvas->toggleFilter(on); |
| 61 } | 61 } |
| 62 | 62 |
| (...skipping 67 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 |