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 SkDrawDash_DEFINED | 8 #ifndef SkDrawDash_DEFINED |
9 #define SkDrawDash_DEFINED | 9 #define SkDrawDash_DEFINED |
10 | 10 |
11 #include "SkPaintPart.h" | 11 #include "SkPaintPart.h" |
12 #include "SkIntArray.h" | 12 #include "SkIntArray.h" |
13 | 13 |
14 class SkDash : public SkDrawPathEffect { | 14 class SkDash : public SkDrawPathEffect { |
15 DECLARE_MEMBER_INFO(Dash); | 15 DECLARE_MEMBER_INFO(Dash); |
16 SkDash(); | 16 SkDash(); |
17 virtual ~SkDash(); | 17 virtual ~SkDash(); |
18 virtual SkPathEffect* getPathEffect() SK_OVERRIDE; | 18 SkPathEffect* getPathEffect() SK_OVERRIDE; |
19 private: | 19 private: |
20 SkTDScalarArray intervals; | 20 SkTDScalarArray intervals; |
21 SkScalar phase; | 21 SkScalar phase; |
22 }; | 22 }; |
23 | 23 |
24 #endif // SkDrawDash_DEFINED | 24 #endif // SkDrawDash_DEFINED |
OLD | NEW |