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

Side by Side Diff: src/effects/gradients/SkRadialGradient.h

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 4 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 | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkRadialGradient.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkRadialGradient_DEFINED 9 #ifndef SkRadialGradient_DEFINED
10 #define SkRadialGradient_DEFINED 10 #define SkRadialGradient_DEFINED
(...skipping 25 matching lines...) Expand all
36 36
37 SK_TO_STRING_OVERRIDE() 37 SK_TO_STRING_OVERRIDE()
38 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRadialGradient) 38 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRadialGradient)
39 39
40 protected: 40 protected:
41 SkRadialGradient(SkReadBuffer& buffer); 41 SkRadialGradient(SkReadBuffer& buffer);
42 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; 42 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE;
43 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE; 43 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE;
44 44
45 private: 45 private:
46 friend class SkGradientShader;
46 typedef SkGradientShaderBase INHERITED; 47 typedef SkGradientShaderBase INHERITED;
47 const SkPoint fCenter; 48 const SkPoint fCenter;
48 const SkScalar fRadius; 49 const SkScalar fRadius;
49 }; 50 };
50 51
51 #endif 52 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkRadialGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698