OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SKDRAWCOMMAND_H_ | 8 #ifndef SKDRAWCOMMAND_H_ |
9 #define SKDRAWCOMMAND_H_ | 9 #define SKDRAWCOMMAND_H_ |
10 | 10 |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 void execute(SkCanvas* canvas) const override; | 452 void execute(SkCanvas* canvas) const override; |
453 | 453 |
454 private: | 454 private: |
455 bool fRestore; | 455 bool fRestore; |
456 | 456 |
457 typedef SkDrawCommand INHERITED; | 457 typedef SkDrawCommand INHERITED; |
458 }; | 458 }; |
459 | 459 |
460 class SkBeginDrawShadowedPictureCommand : public SkDrawCommand { | 460 class SkBeginDrawShadowedPictureCommand : public SkDrawCommand { |
461 public: | 461 public: |
| 462 // sType is not needed because paint holds the shader that holds the sType i
nfo. |
462 SkBeginDrawShadowedPictureCommand(const SkPicture* picture, | 463 SkBeginDrawShadowedPictureCommand(const SkPicture* picture, |
463 const SkMatrix* matrix, | 464 const SkMatrix* matrix, |
464 const SkPaint* paint); | 465 const SkPaint* paint); |
465 | 466 |
466 void execute(SkCanvas* canvas) const override; | 467 void execute(SkCanvas* canvas) const override; |
467 bool render(SkCanvas* canvas) const override; | 468 bool render(SkCanvas* canvas) const override; |
468 | 469 |
469 private: | 470 private: |
470 SkAutoTUnref<const SkPicture> fPicture; | 471 SkAutoTUnref<const SkPicture> fPicture; |
471 SkTLazy<SkMatrix> fMatrix; | 472 SkTLazy<SkMatrix> fMatrix; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 void execute(SkCanvas* canvas) const override; | 771 void execute(SkCanvas* canvas) const override; |
771 Json::Value toJSON(UrlDataManager& urlDataManager) const override; | 772 Json::Value toJSON(UrlDataManager& urlDataManager) const override; |
772 static SkTranslateZCommand* fromJSON(Json::Value& command, UrlDataManager& u
rlDataManager); | 773 static SkTranslateZCommand* fromJSON(Json::Value& command, UrlDataManager& u
rlDataManager); |
773 | 774 |
774 private: | 775 private: |
775 SkScalar fZTranslate; | 776 SkScalar fZTranslate; |
776 | 777 |
777 typedef SkDrawCommand INHERITED; | 778 typedef SkDrawCommand INHERITED; |
778 }; | 779 }; |
779 #endif | 780 #endif |
OLD | NEW |