OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 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 SkLayer_DEFINED | 10 #ifndef SkLayer_DEFINED |
11 #define SkLayer_DEFINED | 11 #define SkLayer_DEFINED |
12 | 12 |
13 #include "SkRefCnt.h" | 13 #include "SkRefCnt.h" |
14 #include "SkTDArray.h" | 14 #include "SkTDArray.h" |
15 #include "SkColor.h" | 15 #include "SkColor.h" |
16 #include "SkMatrix.h" | 16 #include "SkMatrix.h" |
17 #include "SkPoint.h" | 17 #include "SkPoint.h" |
18 #include "SkRect.h" | 18 #include "SkRect.h" |
19 #include "SkSize.h" | 19 #include "SkSize.h" |
20 | 20 |
21 class SkCanvas; | 21 class SkCanvas; |
22 | 22 |
23 class SkLayer : public SkRefCnt { | 23 class SkLayer : public SkRefCnt { |
24 | 24 |
25 public: | 25 public: |
26 SK_DECLARE_INST_COUNT(SkLayer) | 26 |
27 | 27 |
28 SkLayer(); | 28 SkLayer(); |
29 SkLayer(const SkLayer&); | 29 SkLayer(const SkLayer&); |
30 virtual ~SkLayer(); | 30 virtual ~SkLayer(); |
31 | 31 |
32 bool isInheritFromRootTransform() const; | 32 bool isInheritFromRootTransform() const; |
33 SkScalar getOpacity() const { return m_opacity; } | 33 SkScalar getOpacity() const { return m_opacity; } |
34 const SkSize& getSize() const { return m_size; } | 34 const SkSize& getSize() const { return m_size; } |
35 const SkPoint& getPosition() const { return m_position; } | 35 const SkPoint& getPosition() const { return m_position; } |
36 const SkPoint& getAnchorPoint() const { return m_anchorPoint; } | 36 const SkPoint& getAnchorPoint() const { return m_anchorPoint; } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 SkMatrix fMatrix; | 121 SkMatrix fMatrix; |
122 SkMatrix fChildrenMatrix; | 122 SkMatrix fChildrenMatrix; |
123 uint32_t fFlags; | 123 uint32_t fFlags; |
124 | 124 |
125 SkTDArray<SkLayer*> m_children; | 125 SkTDArray<SkLayer*> m_children; |
126 | 126 |
127 typedef SkRefCnt INHERITED; | 127 typedef SkRefCnt INHERITED; |
128 }; | 128 }; |
129 | 129 |
130 #endif | 130 #endif |
OLD | NEW |