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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 | 50 |
51 const SkTDArray<SkDrawCommand*>& getDrawCommands() const { | 51 const SkTDArray<SkDrawCommand*>& getDrawCommands() const { |
52 return fDebugCanvas->getDrawCommands(); | 52 return fDebugCanvas->getDrawCommands(); |
53 } | 53 } |
54 | 54 |
55 void highlightCurrentCommand(bool on) { | 55 void highlightCurrentCommand(bool on) { |
56 fDebugCanvas->toggleFilter(on); | 56 fDebugCanvas->toggleFilter(on); |
57 } | 57 } |
58 | 58 |
59 void setWindowSize(int width, int height) { fDebugCanvas->setWindowSize(widt
h, height); } | |
60 | |
61 void loadPicture(SkPicture* picture); | 59 void loadPicture(SkPicture* picture); |
62 | 60 |
63 SkPicture* copyPicture(); | 61 SkPicture* copyPicture(); |
64 | 62 |
65 int getSize() const { | 63 int getSize() const { |
66 return fDebugCanvas->getSize(); | 64 return fDebugCanvas->getSize(); |
67 } | 65 } |
68 | 66 |
69 void setUserMatrix(SkMatrix userMatrix) { | 67 void setUserMatrix(SkMatrix userMatrix) { |
70 // Should this live in debugger instead? | 68 // Should this live in debugger instead? |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 124 |
127 private: | 125 private: |
128 SkDebugCanvas* fDebugCanvas; | 126 SkDebugCanvas* fDebugCanvas; |
129 SkPicture* fPicture; | 127 SkPicture* fPicture; |
130 | 128 |
131 int fIndex; | 129 int fIndex; |
132 }; | 130 }; |
133 | 131 |
134 | 132 |
135 #endif /* SKDEBUGGER_H_ */ | 133 #endif /* SKDEBUGGER_H_ */ |
OLD | NEW |