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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 */ | 307 */ |
308 void addDrawCommand(SkDrawCommand* command); | 308 void addDrawCommand(SkDrawCommand* command); |
309 | 309 |
310 /** | 310 /** |
311 Applies any panning and zooming the user has specified before | 311 Applies any panning and zooming the user has specified before |
312 drawing anything else into the canvas. | 312 drawing anything else into the canvas. |
313 */ | 313 */ |
314 void applyUserTransform(SkCanvas* canvas); | 314 void applyUserTransform(SkCanvas* canvas); |
315 | 315 |
316 size_t getOpID() const { | 316 size_t getOpID() const { |
| 317 #if 0 |
317 if (NULL != fPicture) { | 318 if (NULL != fPicture) { |
318 return fPicture->EXPERIMENTAL_curOpID(); | 319 return fPicture->EXPERIMENTAL_curOpID(); |
319 } | 320 } |
| 321 #endif |
320 return 0; | 322 return 0; |
321 } | 323 } |
322 | 324 |
323 void resetClipStackData() { fClipStackData.reset(); fCalledAddStackData = fa
lse; } | 325 void resetClipStackData() { fClipStackData.reset(); fCalledAddStackData = fa
lse; } |
324 | 326 |
325 void addClipStackData(const SkPath& devPath, const SkPath& operand, SkRegion
::Op elementOp); | 327 void addClipStackData(const SkPath& devPath, const SkPath& operand, SkRegion
::Op elementOp); |
326 void addPathData(const SkPath& path, const char* pathName); | 328 void addPathData(const SkPath& path, const char* pathName); |
327 bool lastClipStackData(const SkPath& devPath); | 329 bool lastClipStackData(const SkPath& devPath); |
328 void outputConicPoints(const SkPoint* pts, SkScalar weight); | 330 void outputConicPoints(const SkPoint* pts, SkScalar weight); |
329 void outputPoints(const SkPoint* pts, int count); | 331 void outputPoints(const SkPoint* pts, int count); |
330 void outputPointsCommon(const SkPoint* pts, int count); | 332 void outputPointsCommon(const SkPoint* pts, int count); |
331 void outputScalar(SkScalar num); | 333 void outputScalar(SkScalar num); |
332 | 334 |
333 typedef SkCanvas INHERITED; | 335 typedef SkCanvas INHERITED; |
334 }; | 336 }; |
335 | 337 |
336 #endif | 338 #endif |
OLD | NEW |