OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 #include "SkDrawExtraPathEffect.h" | 8 #include "SkDrawExtraPathEffect.h" |
9 #include "SkDrawPath.h" | 9 #include "SkDrawPath.h" |
10 #include "Sk1DPathEffect.h" | 10 #include "Sk1DPathEffect.h" |
11 #include "Sk2DPathEffect.h" | 11 #include "Sk2DPathEffect.h" |
12 #include "SkMemberInfo.h" | 12 #include "SkMemberInfo.h" |
13 #include "SkPaintPart.h" | 13 #include "SkPaintPart.h" |
14 #include "SkPathEffect.h" | 14 #include "SkPathEffect.h" |
15 #include "SkCornerPathEffect.h" | 15 #include "SkCornerPathEffect.h" |
16 | 16 |
17 #include "SkDashPathEffect.h" | 17 #include "SkDashPathEffect.h" |
18 | 18 |
19 class SkDrawShapePathEffect : public SkDrawPathEffect { | 19 class SkDrawShapePathEffect : public SkDrawPathEffect { |
20 DECLARE_PRIVATE_MEMBER_INFO(DrawShapePathEffect); | 20 DECLARE_PRIVATE_MEMBER_INFO(DrawShapePathEffect); |
21 SkDrawShapePathEffect(); | 21 SkDrawShapePathEffect(); |
22 virtual ~SkDrawShapePathEffect(); | 22 virtual ~SkDrawShapePathEffect(); |
23 virtual bool addChild(SkAnimateMaker& , SkDisplayable* ) SK_OVERRIDE; | 23 virtual bool addChild(SkAnimateMaker& , SkDisplayable* ) SK_OVERRIDE; |
24 virtual SkPathEffect* getPathEffect(); | 24 virtual SkPathEffect* getPathEffect(); |
25 protected: | 25 protected: |
26 SkDrawable* addPath; | 26 SkADrawable* addPath; |
27 SkDrawable* addMatrix; | 27 SkADrawable* addMatrix; |
28 SkDrawPath* path; | 28 SkDrawPath* path; |
29 SkPathEffect* fPathEffect; | 29 SkPathEffect* fPathEffect; |
30 friend class SkShape1DPathEffect; | 30 friend class SkShape1DPathEffect; |
31 friend class SkShape2DPathEffect; | 31 friend class SkShape2DPathEffect; |
32 }; | 32 }; |
33 | 33 |
34 class SkDrawShape1DPathEffect : public SkDrawShapePathEffect { | 34 class SkDrawShape1DPathEffect : public SkDrawShapePathEffect { |
35 DECLARE_EXTRAS_MEMBER_INFO(SkDrawShape1DPathEffect); | 35 DECLARE_EXTRAS_MEMBER_INFO(SkDrawShape1DPathEffect); |
36 SkDrawShape1DPathEffect(SkDisplayTypes ); | 36 SkDrawShape1DPathEffect(SkDisplayTypes ); |
37 virtual ~SkDrawShape1DPathEffect(); | 37 virtual ~SkDrawShape1DPathEffect(); |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 504 |
505 void InitializeSkExtraPathEffects(SkAnimator* animator) { | 505 void InitializeSkExtraPathEffects(SkAnimator* animator) { |
506 animator->addExtras(new SkExtraPathEffects()); | 506 animator->addExtras(new SkExtraPathEffects()); |
507 } | 507 } |
508 | 508 |
509 //////////////// | 509 //////////////// |
510 | 510 |
511 | 511 |
512 SkExtras::SkExtras() : fExtraCallBack(NULL), fExtraStorage(NULL) { | 512 SkExtras::SkExtras() : fExtraCallBack(NULL), fExtraStorage(NULL) { |
513 } | 513 } |
OLD | NEW |