OLD | NEW |
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 Loading... |
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 |
OLD | NEW |