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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 @param command The draw command for execution | 248 @param command The draw command for execution |
249 */ | 249 */ |
250 void addDrawCommand(SkDrawCommand* command); | 250 void addDrawCommand(SkDrawCommand* command); |
251 | 251 |
252 /** | 252 /** |
253 Applies any panning and zooming the user has specified before | 253 Applies any panning and zooming the user has specified before |
254 drawing anything else into the canvas. | 254 drawing anything else into the canvas. |
255 */ | 255 */ |
256 void applyUserTransform(SkCanvas* canvas); | 256 void applyUserTransform(SkCanvas* canvas); |
257 | 257 |
258 size_t getOpID() const { | |
259 #if 0 | |
260 if (fPicture) { | |
261 return fPicture->EXPERIMENTAL_curOpID(); | |
262 } | |
263 #endif | |
264 return 0; | |
265 } | |
266 | |
267 void resetClipStackData() { fClipStackData.reset(); fCalledAddStackData = fa
lse; } | 258 void resetClipStackData() { fClipStackData.reset(); fCalledAddStackData = fa
lse; } |
268 | 259 |
269 void addClipStackData(const SkPath& devPath, const SkPath& operand, SkRegion
::Op elementOp); | 260 void addClipStackData(const SkPath& devPath, const SkPath& operand, SkRegion
::Op elementOp); |
270 void addPathData(const SkPath& path, const char* pathName); | 261 void addPathData(const SkPath& path, const char* pathName); |
271 bool lastClipStackData(const SkPath& devPath); | 262 bool lastClipStackData(const SkPath& devPath); |
272 void outputConicPoints(const SkPoint* pts, SkScalar weight); | 263 void outputConicPoints(const SkPoint* pts, SkScalar weight); |
273 void outputPoints(const SkPoint* pts, int count); | 264 void outputPoints(const SkPoint* pts, int count); |
274 void outputPointsCommon(const SkPoint* pts, int count); | 265 void outputPointsCommon(const SkPoint* pts, int count); |
275 void outputScalar(SkScalar num); | 266 void outputScalar(SkScalar num); |
276 | 267 |
277 typedef SkCanvas INHERITED; | 268 typedef SkCanvas INHERITED; |
278 }; | 269 }; |
279 | 270 |
280 #endif | 271 #endif |
OLD | NEW |