| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const overrid
e; | 74 SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const overrid
e; |
| 75 | 75 |
| 76 size_t contextSize() const override { return sizeof(LayerDrawLooperContext);
} | 76 size_t contextSize() const override { return sizeof(LayerDrawLooperContext);
} |
| 77 | 77 |
| 78 bool asABlurShadow(BlurShadowRec* rec) const override; | 78 bool asABlurShadow(BlurShadowRec* rec) const override; |
| 79 | 79 |
| 80 SK_TO_STRING_OVERRIDE() | 80 SK_TO_STRING_OVERRIDE() |
| 81 | 81 |
| 82 Factory getFactory() const override { return CreateProc; } | 82 Factory getFactory() const override { return CreateProc; } |
| 83 static SkFlattenable* CreateProc(SkReadBuffer& buffer); | 83 static sk_sp<SkFlattenable> CreateProc(SkReadBuffer& buffer); |
| 84 | 84 |
| 85 protected: | 85 protected: |
| 86 SkLayerDrawLooper(); | 86 SkLayerDrawLooper(); |
| 87 | 87 |
| 88 void flatten(SkWriteBuffer&) const override; | 88 void flatten(SkWriteBuffer&) const override; |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 struct Rec { | 91 struct Rec { |
| 92 Rec* fNext; | 92 Rec* fNext; |
| 93 SkPaint fPaint; | 93 SkPaint fPaint; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 #endif | 150 #endif |
| 151 | 151 |
| 152 private: | 152 private: |
| 153 Rec* fRecs; | 153 Rec* fRecs; |
| 154 Rec* fTopRec; | 154 Rec* fTopRec; |
| 155 int fCount; | 155 int fCount; |
| 156 }; | 156 }; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 #endif | 159 #endif |
| OLD | NEW |