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 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 * fColorMode == kDst_Mode | 70 * fColorMode == kDst_Mode |
71 * fOffset == (0, 0) | 71 * fOffset == (0, 0) |
72 */ | 72 */ |
73 LayerInfo(); | 73 LayerInfo(); |
74 }; | 74 }; |
75 | 75 |
76 virtual SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const
SK_OVERRIDE; | 76 virtual SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const
SK_OVERRIDE; |
77 | 77 |
78 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(LayerDrawLoop
erContext); } | 78 virtual size_t contextSize() const SK_OVERRIDE { return sizeof(LayerDrawLoop
erContext); } |
79 | 79 |
| 80 virtual bool asABlurShadow(BlurShadowRec* rec) const SK_OVERRIDE; |
| 81 |
80 SK_TO_STRING_OVERRIDE() | 82 SK_TO_STRING_OVERRIDE() |
81 | 83 |
82 /// Implements Flattenable. | 84 /// Implements Flattenable. |
83 virtual Factory getFactory() const SK_OVERRIDE { return CreateProc; } | 85 virtual Factory getFactory() const SK_OVERRIDE { return CreateProc; } |
84 static SkFlattenable* CreateProc(SkReadBuffer& buffer); | 86 static SkFlattenable* CreateProc(SkReadBuffer& buffer); |
85 | 87 |
86 protected: | 88 protected: |
87 SkLayerDrawLooper(); | 89 SkLayerDrawLooper(); |
88 | 90 |
89 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 91 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 SkLayerDrawLooper* detachLooper(); | 154 SkLayerDrawLooper* detachLooper(); |
153 | 155 |
154 private: | 156 private: |
155 Rec* fRecs; | 157 Rec* fRecs; |
156 Rec* fTopRec; | 158 Rec* fTopRec; |
157 int fCount; | 159 int fCount; |
158 }; | 160 }; |
159 }; | 161 }; |
160 | 162 |
161 #endif | 163 #endif |
OLD | NEW |