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 typedef SkDrawLooper INHERITED; |
| 18 |
17 public: | 19 public: |
18 SK_DECLARE_INST_COUNT(SkLayerDrawLooper) | 20 SK_DECLARE_INST_COUNT(SkLayerDrawLooper) |
19 | 21 |
20 SkLayerDrawLooper(); | 22 SkLayerDrawLooper(); |
21 virtual ~SkLayerDrawLooper(); | 23 virtual ~SkLayerDrawLooper(); |
22 | 24 |
23 /** | 25 /** |
24 * Bits specifies which aspects of the layer's paint should replace the | 26 * Bits specifies which aspects of the layer's paint should replace the |
25 * corresponding aspects on the draw's paint. | 27 * corresponding aspects on the draw's paint. |
26 * kEntirePaint_Bits means use the layer's paint completely. | 28 * kEntirePaint_Bits means use the layer's paint completely. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 127 |
126 // state-machine during the init/next cycle | 128 // state-machine during the init/next cycle |
127 Rec* fCurrRec; | 129 Rec* fCurrRec; |
128 | 130 |
129 static void ApplyInfo(SkPaint* dst, const SkPaint& src, const LayerInfo&); | 131 static void ApplyInfo(SkPaint* dst, const SkPaint& src, const LayerInfo&); |
130 | 132 |
131 class MyRegistrar : public SkFlattenable::Registrar { | 133 class MyRegistrar : public SkFlattenable::Registrar { |
132 public: | 134 public: |
133 MyRegistrar(); | 135 MyRegistrar(); |
134 }; | 136 }; |
135 | |
136 typedef SkDrawLooper INHERITED; | |
137 }; | 137 }; |
138 | 138 |
139 #endif | 139 #endif |
OLD | NEW |