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

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

Issue 197763008: Allow toString capability to be toggled independent of developer mode (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: remove gyp changes Created 6 years, 9 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 | Annotate | Revision Log
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 15 matching lines...) Expand all
26 virtual void shadeSpan(int x, int y, SkPMColor* dstCParam, 26 virtual void shadeSpan(int x, int y, SkPMColor* dstCParam,
27 int count) SK_OVERRIDE; 27 int count) SK_OVERRIDE;
28 virtual bool setContext(const SkBitmap& device, 28 virtual bool setContext(const SkBitmap& device,
29 const SkPaint& paint, 29 const SkPaint& paint,
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_TO_STRING_OVERRIDE()
37 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTwoPointRadialGradient ) 37 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTwoPointRadialGradient )
38 38
39 protected: 39 protected:
40 SkTwoPointRadialGradient(SkReadBuffer& buffer); 40 SkTwoPointRadialGradient(SkReadBuffer& buffer);
41 virtual void flatten(SkWriteBuffer& 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
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.cpp ('k') | src/effects/gradients/SkTwoPointRadialGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698