OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
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 SkLayerDrawLooper_DEFINED | 8 #ifndef SkLayerDrawLooper_DEFINED |
9 #define SkLayerDrawLooper_DEFINED | 9 #define SkLayerDrawLooper_DEFINED |
10 | 10 |
11 #include "SkDrawLooper.h" | 11 #include "SkDrawLooper.h" |
12 #include "SkPaint.h" | 12 #include "SkPaint.h" |
13 #include "SkPoint.h" | 13 #include "SkPoint.h" |
14 #include "SkXfermode.h" | 14 #include "SkXfermode.h" |
15 | 15 |
16 class SK_API SkLayerDrawLooper : public SkDrawLooper { | 16 class SK_API SkLayerDrawLooper : public SkDrawLooper { |
17 public: | 17 public: |
18 SK_DECLARE_INST_COUNT(SkLayerDrawLooper) | |
19 | |
20 virtual ~SkLayerDrawLooper(); | 18 virtual ~SkLayerDrawLooper(); |
21 | 19 |
22 /** | 20 /** |
23 * Bits specifies which aspects of the layer's paint should replace the | 21 * Bits specifies which aspects of the layer's paint should replace the |
24 * corresponding aspects on the draw's paint. | 22 * corresponding aspects on the draw's paint. |
25 * kEntirePaint_Bits means use the layer's paint completely. | 23 * kEntirePaint_Bits means use the layer's paint completely. |
26 * 0 means ignore the layer's paint... except for fColorMode, which is | 24 * 0 means ignore the layer's paint... except for fColorMode, which is |
27 * always applied. | 25 * always applied. |
28 */ | 26 */ |
29 enum Bits { | 27 enum Bits { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 SkLayerDrawLooper* detachLooper(); | 151 SkLayerDrawLooper* detachLooper(); |
154 | 152 |
155 private: | 153 private: |
156 Rec* fRecs; | 154 Rec* fRecs; |
157 Rec* fTopRec; | 155 Rec* fTopRec; |
158 int fCount; | 156 int fCount; |
159 }; | 157 }; |
160 }; | 158 }; |
161 | 159 |
162 #endif | 160 #endif |
OLD | NEW |