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 SKDEBUGCANVAS_H_ | 10 #ifndef SKDEBUGCANVAS_H_ |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 /** | 142 /** |
143 Toggles the visibility / execution of the draw command at index i with | 143 Toggles the visibility / execution of the draw command at index i with |
144 the value of toggle. | 144 the value of toggle. |
145 */ | 145 */ |
146 void toggleCommand(int index, bool toggle); | 146 void toggleCommand(int index, bool toggle); |
147 | 147 |
148 void setWindowSize(int width, int height) { fWindowSize.set(width, height);
} | 148 void setWindowSize(int width, int height) { fWindowSize.set(width, height);
} |
149 | 149 |
150 void setUserMatrix(SkMatrix matrix) { | 150 void setUserMatrix(SkMatrix matrix) { |
151 fUserMatrix = matrix; | 151 fUserMatrix = matrix; |
| 152 fDrawNeedsReset = true; |
152 } | 153 } |
153 | 154 |
154 SkString clipStackData() const { return fClipStackData; } | 155 SkString clipStackData() const { return fClipStackData; } |
155 | 156 |
156 //////////////////////////////////////////////////////////////////////////////// | 157 //////////////////////////////////////////////////////////////////////////////// |
157 // Inherited from SkCanvas | 158 // Inherited from SkCanvas |
158 //////////////////////////////////////////////////////////////////////////////// | 159 //////////////////////////////////////////////////////////////////////////////// |
159 | 160 |
160 virtual void clear(SkColor) SK_OVERRIDE; | 161 virtual void clear(SkColor) SK_OVERRIDE; |
161 | 162 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 void markActiveCommands(int index); | 255 void markActiveCommands(int index); |
255 | 256 |
256 private: | 257 private: |
257 SkTDArray<SkDrawCommand*> fCommandVector; | 258 SkTDArray<SkDrawCommand*> fCommandVector; |
258 SkPicture* fPicture; | 259 SkPicture* fPicture; |
259 SkISize fWindowSize; | 260 SkISize fWindowSize; |
260 bool fFilter; | 261 bool fFilter; |
261 bool fMegaVizMode; | 262 bool fMegaVizMode; |
262 int fIndex; | 263 int fIndex; |
263 SkMatrix fUserMatrix; | 264 SkMatrix fUserMatrix; |
| 265 bool fDrawNeedsReset; // fUserMatrix has changed so the incremental draw
won't work |
264 SkMatrix fMatrix; | 266 SkMatrix fMatrix; |
265 SkIRect fClip; | 267 SkIRect fClip; |
266 | 268 |
267 SkString fClipStackData; | 269 SkString fClipStackData; |
268 bool fCalledAddStackData; | 270 bool fCalledAddStackData; |
269 SkPath fSaveDevPath; | 271 SkPath fSaveDevPath; |
270 | 272 |
271 bool fOverdrawViz; | 273 bool fOverdrawViz; |
272 SkDrawFilter* fOverdrawFilter; | 274 SkDrawFilter* fOverdrawFilter; |
273 | 275 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 bool lastClipStackData(const SkPath& devPath); | 324 bool lastClipStackData(const SkPath& devPath); |
323 void outputConicPoints(const SkPoint* pts, SkScalar weight); | 325 void outputConicPoints(const SkPoint* pts, SkScalar weight); |
324 void outputPoints(const SkPoint* pts, int count); | 326 void outputPoints(const SkPoint* pts, int count); |
325 void outputPointsCommon(const SkPoint* pts, int count); | 327 void outputPointsCommon(const SkPoint* pts, int count); |
326 void outputScalar(SkScalar num); | 328 void outputScalar(SkScalar num); |
327 | 329 |
328 typedef SkCanvas INHERITED; | 330 typedef SkCanvas INHERITED; |
329 }; | 331 }; |
330 | 332 |
331 #endif | 333 #endif |
OLD | NEW |