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

Side by Side Diff: src/effects/gradients/SkTwoPointConicalGradient.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
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 SkTwoPointConicalGradient_DEFINED 9 #ifndef SkTwoPointConicalGradient_DEFINED
10 #define SkTwoPointConicalGradient_DEFINED 10 #define SkTwoPointConicalGradient_DEFINED
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; 84 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE;
85 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE; 85 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE;
86 86
87 private: 87 private:
88 SkPoint fCenter1; 88 SkPoint fCenter1;
89 SkPoint fCenter2; 89 SkPoint fCenter2;
90 SkScalar fRadius1; 90 SkScalar fRadius1;
91 SkScalar fRadius2; 91 SkScalar fRadius2;
92 bool fFlippedGrad; 92 bool fFlippedGrad;
93 93
94 friend class SkGradientShader;
94 typedef SkGradientShaderBase INHERITED; 95 typedef SkGradientShaderBase INHERITED;
95 }; 96 };
96 97
97 #endif 98 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkSweepGradient.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698