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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 loadPicture(SkPicture* picture); | 59 void loadPicture(SkPicture* picture); |
60 | 60 |
61 SkPicture* copyPicture(); | 61 sk_sp<SkPicture> copyPicture(); |
62 | 62 |
63 int getSize() const { | 63 int getSize() const { |
64 return fDebugCanvas->getSize(); | 64 return fDebugCanvas->getSize(); |
65 } | 65 } |
66 | 66 |
67 void setUserMatrix(SkMatrix userMatrix) { | 67 void setUserMatrix(SkMatrix userMatrix) { |
68 // Should this live in debugger instead? | 68 // Should this live in debugger instead? |
69 fDebugCanvas->setUserMatrix(userMatrix); | 69 fDebugCanvas->setUserMatrix(userMatrix); |
70 } | 70 } |
71 | 71 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 private: | 125 private: |
126 SkDebugCanvas* fDebugCanvas; | 126 SkDebugCanvas* fDebugCanvas; |
127 SkPicture* fPicture; | 127 SkPicture* fPicture; |
128 | 128 |
129 int fIndex; | 129 int fIndex; |
130 }; | 130 }; |
131 | 131 |
132 | 132 |
133 #endif /* SKDEBUGGER_H_ */ | 133 #endif /* SKDEBUGGER_H_ */ |
OLD | NEW |