OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 SkDrawGradient_DEFINED | 10 #ifndef SkDrawGradient_DEFINED |
11 #define SkDrawGradient_DEFINED | 11 #define SkDrawGradient_DEFINED |
12 | 12 |
13 #include "SkDrawColor.h" | 13 #include "SkDrawColor.h" |
14 #include "SkDrawShader.h" | 14 #include "SkDrawShader.h" |
15 #include "SkIntArray.h" | 15 #include "SkIntArray.h" |
16 | 16 |
17 class SkUnitMapper; | 17 class SkUnitMapper; |
18 | 18 |
19 class SkDrawGradient : public SkDrawShader { | 19 class SkDrawGradient : public SkDrawShader { |
20 DECLARE_PRIVATE_MEMBER_INFO(DrawGradient); | 20 DECLARE_PRIVATE_MEMBER_INFO(DrawGradient); |
21 SkDrawGradient(); | 21 SkDrawGradient(); |
22 virtual ~SkDrawGradient(); | 22 virtual ~SkDrawGradient(); |
23 virtual bool add(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; | 23 virtual bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; |
24 #ifdef SK_DUMP_ENABLED | 24 #ifdef SK_DUMP_ENABLED |
25 virtual void dumpRest(SkAnimateMaker*); | 25 virtual void dumpRest(SkAnimateMaker*); |
26 #endif | 26 #endif |
27 virtual void onEndElement(SkAnimateMaker& ); | 27 virtual void onEndElement(SkAnimateMaker& ); |
28 protected: | 28 protected: |
29 SkTDScalarArray offsets; | 29 SkTDScalarArray offsets; |
30 SkString unitMapper; | 30 SkString unitMapper; |
31 SkTDColorArray fColors; | 31 SkTDColorArray fColors; |
32 SkTDDrawColorArray fDrawColors; | 32 SkTDDrawColorArray fDrawColors; |
33 SkUnitMapper* fUnitMapper; | 33 SkUnitMapper* fUnitMapper; |
(...skipping 25 matching lines...) Expand all Loading... |
59 virtual SkShader* getShader(); | 59 virtual SkShader* getShader(); |
60 protected: | 60 protected: |
61 SkPoint center; | 61 SkPoint center; |
62 SkScalar radius; | 62 SkScalar radius; |
63 private: | 63 private: |
64 typedef SkDrawGradient INHERITED; | 64 typedef SkDrawGradient INHERITED; |
65 }; | 65 }; |
66 | 66 |
67 #endif // SkDrawGradient_DEFINED | 67 #endif // SkDrawGradient_DEFINED |
68 | 68 |
OLD | NEW |