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 #ifndef SkPaintPart_DEFINED | 8 #ifndef SkPaintPart_DEFINED |
9 #define SkPaintPart_DEFINED | 9 #define SkPaintPart_DEFINED |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 protected: | 44 protected: |
45 virtual bool add(); | 45 virtual bool add(); |
46 }; | 46 }; |
47 | 47 |
48 class SkDrawShader : public SkPaintPart { | 48 class SkDrawShader : public SkPaintPart { |
49 DECLARE_DRAW_MEMBER_INFO(Shader); | 49 DECLARE_DRAW_MEMBER_INFO(Shader); |
50 SkDrawShader(); | 50 SkDrawShader(); |
51 virtual SkShader* getShader(); | 51 virtual SkShader* getShader(); |
52 protected: | 52 protected: |
53 virtual bool add(); | 53 virtual bool add(); |
54 void addPostlude(SkShader* shader); | 54 SkMatrix* getMatrix(); // returns NULL if matrix is NULL |
55 SkDrawMatrix* matrix; | 55 SkDrawMatrix* matrix; |
56 int /*SkShader::TileMode*/ tileMode; | 56 int /*SkShader::TileMode*/ tileMode; |
57 }; | 57 }; |
58 | 58 |
59 class SkDrawTypeface : public SkPaintPart { | 59 class SkDrawTypeface : public SkPaintPart { |
60 DECLARE_DRAW_MEMBER_INFO(Typeface); | 60 DECLARE_DRAW_MEMBER_INFO(Typeface); |
61 SkDrawTypeface(); | 61 SkDrawTypeface(); |
62 #ifdef SK_DUMP_ENABLED | 62 #ifdef SK_DUMP_ENABLED |
63 virtual void dump(SkAnimateMaker *); | 63 virtual void dump(SkAnimateMaker *); |
64 #endif | 64 #endif |
65 SkTypeface* getTypeface() { | 65 SkTypeface* getTypeface() { |
66 return SkTypeface::CreateFromName(fontName.c_str(), style); } | 66 return SkTypeface::CreateFromName(fontName.c_str(), style); } |
67 protected: | 67 protected: |
68 virtual bool add(); | 68 virtual bool add(); |
69 SkString fontName; | 69 SkString fontName; |
70 SkTypeface::Style style; | 70 SkTypeface::Style style; |
71 }; | 71 }; |
72 | 72 |
73 #endif // SkPaintPart_DEFINED | 73 #endif // SkPaintPart_DEFINED |
OLD | NEW |