Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: include/effects/SkLayerDrawLooper.h

Issue 1855733002: change flattenable factory to return sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkFlattenable.h ('k') | samplecode/ClockFaceView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/core/SkFlattenable.h ('k') | samplecode/ClockFaceView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698