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

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

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 years, 10 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 SkTwoPointRadialGradient_DEFINED 9 #ifndef SkTwoPointRadialGradient_DEFINED
10 #define SkTwoPointRadialGradient_DEFINED 10 #define SkTwoPointRadialGradient_DEFINED
(...skipping 19 matching lines...) Expand all
30 const SkMatrix& matrix) SK_OVERRIDE; 30 const SkMatrix& matrix) SK_OVERRIDE;
31 31
32 SkScalar getCenterX1() const { return fDiff.length(); } 32 SkScalar getCenterX1() const { return fDiff.length(); }
33 SkScalar getStartRadius() const { return fStartRadius; } 33 SkScalar getStartRadius() const { return fStartRadius; }
34 SkScalar getDiffRadius() const { return fDiffRadius; } 34 SkScalar getDiffRadius() const { return fDiffRadius; }
35 35
36 SK_DEVELOPER_TO_STRING() 36 SK_DEVELOPER_TO_STRING()
37 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTwoPointRadialGradient ) 37 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTwoPointRadialGradient )
38 38
39 protected: 39 protected:
40 SkTwoPointRadialGradient(SkFlattenableReadBuffer& buffer); 40 SkTwoPointRadialGradient(SkReadBuffer& buffer);
41 virtual void flatten(SkFlattenableWriteBuffer& buffer) const SK_OVERRIDE; 41 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE;
42 42
43 private: 43 private:
44 typedef SkGradientShaderBase INHERITED; 44 typedef SkGradientShaderBase INHERITED;
45 const SkPoint fCenter1; 45 const SkPoint fCenter1;
46 const SkPoint fCenter2; 46 const SkPoint fCenter2;
47 const SkScalar fRadius1; 47 const SkScalar fRadius1;
48 const SkScalar fRadius2; 48 const SkScalar fRadius2;
49 SkPoint fDiff; 49 SkPoint fDiff;
50 SkScalar fStartRadius, fDiffRadius, fSr2D2, fA, fOneOverTwoA; 50 SkScalar fStartRadius, fDiffRadius, fSr2D2, fA, fOneOverTwoA;
51 51
52 void init(); 52 void init();
53 }; 53 };
54 54
55 #endif 55 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698