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 #ifndef SKDRAWCOMMAND_H_ | 9 #ifndef SKDRAWCOMMAND_H_ |
10 #define SKDRAWCOMMAND_H_ | 10 #define SKDRAWCOMMAND_H_ |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 SkPath fPath; | 309 SkPath fPath; |
310 SkPaint fPaint; | 310 SkPaint fPaint; |
311 | 311 |
312 typedef SkDrawCommand INHERITED; | 312 typedef SkDrawCommand INHERITED; |
313 }; | 313 }; |
314 | 314 |
315 class SkDrawPictureCommand : public SkDrawCommand { | 315 class SkDrawPictureCommand : public SkDrawCommand { |
316 public: | 316 public: |
317 SkDrawPictureCommand(SkPicture& picture); | 317 SkDrawPictureCommand(SkPicture& picture); |
318 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 318 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 319 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; |
| 320 |
319 private: | 321 private: |
320 SkPicture fPicture; | 322 SkPicture fPicture; |
321 | 323 |
322 typedef SkDrawCommand INHERITED; | 324 typedef SkDrawCommand INHERITED; |
323 }; | 325 }; |
324 | 326 |
325 class SkDrawPointsCommand : public SkDrawCommand { | 327 class SkDrawPointsCommand : public SkDrawCommand { |
326 public: | 328 public: |
327 SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pt
s[], | 329 SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pt
s[], |
328 const SkPaint& paint); | 330 const SkPaint& paint); |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 SkScalar y() const { return fDy; } | 551 SkScalar y() const { return fDy; } |
550 | 552 |
551 private: | 553 private: |
552 SkScalar fDx; | 554 SkScalar fDx; |
553 SkScalar fDy; | 555 SkScalar fDy; |
554 | 556 |
555 typedef SkDrawCommand INHERITED; | 557 typedef SkDrawCommand INHERITED; |
556 }; | 558 }; |
557 | 559 |
558 #endif | 560 #endif |
OLD | NEW |