| 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 30 matching lines...) Expand all Loading... |
| 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 SkTArray<SkString>* getDrawCommandsAsStrings() { |
| 48 return fDebugCanvas->getDrawCommandsAsStrings(); | 48 return fDebugCanvas->getDrawCommandsAsStrings(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 SkTDArray<size_t>* getDrawCommandOffsets() { |
| 52 return fDebugCanvas->getDrawCommandOffsets(); |
| 53 } |
| 54 |
| 51 const SkTDArray<SkDrawCommand*>& getDrawCommands() const { | 55 const SkTDArray<SkDrawCommand*>& getDrawCommands() const { |
| 52 return fDebugCanvas->getDrawCommands(); | 56 return fDebugCanvas->getDrawCommands(); |
| 53 } | 57 } |
| 54 | 58 |
| 55 void highlightCurrentCommand(bool on) { | 59 void highlightCurrentCommand(bool on) { |
| 56 fDebugCanvas->toggleFilter(on); | 60 fDebugCanvas->toggleFilter(on); |
| 57 } | 61 } |
| 58 | 62 |
| 59 void resize(int width, int height) { | 63 void resize(int width, int height) { |
| 60 fDebugCanvas->setBounds(width, height); | 64 fDebugCanvas->setBounds(width, height); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 SkDebugCanvas* fDebugCanvas; | 130 SkDebugCanvas* fDebugCanvas; |
| 127 SkPicture* fPicture; | 131 SkPicture* fPicture; |
| 128 | 132 |
| 129 int fPictureWidth; | 133 int fPictureWidth; |
| 130 int fPictureHeight; | 134 int fPictureHeight; |
| 131 int fIndex; | 135 int fIndex; |
| 132 }; | 136 }; |
| 133 | 137 |
| 134 | 138 |
| 135 #endif /* SKDEBUGGER_H_ */ | 139 #endif /* SKDEBUGGER_H_ */ |
| OLD | NEW |