OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | |
10 #ifndef SkDisplayList_DEFINED | 8 #ifndef SkDisplayList_DEFINED |
11 #define SkDisplayList_DEFINED | 9 #define SkDisplayList_DEFINED |
12 | 10 |
13 #include "SkOperand.h" | 11 #include "SkOperand.h" |
14 #include "SkIntArray.h" | 12 #include "SkIntArray.h" |
15 #include "SkBounder.h" | |
16 #include "SkRect.h" | 13 #include "SkRect.h" |
| 14 #include "SkRefCnt.h" |
17 | 15 |
18 class SkAnimateMaker; | 16 class SkAnimateMaker; |
19 class SkActive; | 17 class SkActive; |
20 class SkApply; | 18 class SkApply; |
21 class SkDrawable; | 19 class SkDrawable; |
22 class SkGroup; | 20 class SkGroup; |
23 | 21 |
24 class SkDisplayList : public SkBounder { | 22 class SkDisplayList : public SkRefCnt { |
25 public: | 23 public: |
26 SkDisplayList(); | 24 SkDisplayList(); |
27 virtual ~SkDisplayList(); | 25 virtual ~SkDisplayList(); |
28 void append(SkActive* ); | 26 void append(SkActive* ); |
29 void clear() { fDrawList.reset(); } | 27 void clear() { fDrawList.reset(); } |
30 int count() { return fDrawList.count(); } | 28 int count() { return fDrawList.count(); } |
31 bool draw(SkAnimateMaker& , SkMSec time); | 29 bool draw(SkAnimateMaker& , SkMSec time); |
32 #ifdef SK_DUMP_ENABLED | 30 #ifdef SK_DUMP_ENABLED |
33 void dump(SkAnimateMaker* maker); | 31 void dump(SkAnimateMaker* maker); |
34 void dumpInner(SkAnimateMaker* maker); | 32 void dumpInner(SkAnimateMaker* maker); |
(...skipping 26 matching lines...) Expand all Loading... |
61 bool fHasUnion; | 59 bool fHasUnion; |
62 bool fUnionBounds; | 60 bool fUnionBounds; |
63 private: | 61 private: |
64 SkTDDrawableArray fDrawList; | 62 SkTDDrawableArray fDrawList; |
65 SkTDActiveArray fActiveList; | 63 SkTDActiveArray fActiveList; |
66 SkMSec fInTime; | 64 SkMSec fInTime; |
67 friend class SkEvents; | 65 friend class SkEvents; |
68 }; | 66 }; |
69 | 67 |
70 #endif // SkDisplayList_DEFINED | 68 #endif // SkDisplayList_DEFINED |
OLD | NEW |