| 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 SkSweepGradient_DEFINED | 9 #ifndef SkSweepGradient_DEFINED |
| 10 #define SkSweepGradient_DEFINED | 10 #define SkSweepGradient_DEFINED |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; | 35 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; |
| 36 | 36 |
| 37 virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*
, GrColor*, | 37 virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*
, GrColor*, |
| 38 GrFragmentProcessor**) const SK_OVERRIDE; | 38 GrFragmentProcessor**) const SK_OVERRIDE; |
| 39 | 39 |
| 40 SK_TO_STRING_OVERRIDE() | 40 SK_TO_STRING_OVERRIDE() |
| 41 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSweepGradient) | 41 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSweepGradient) |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 45 SkSweepGradient(SkReadBuffer& buffer); |
| 46 #endif |
| 44 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; | 47 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; |
| 45 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 48 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
| 46 | 49 |
| 47 private: | 50 private: |
| 48 const SkPoint fCenter; | 51 const SkPoint fCenter; |
| 49 | 52 |
| 50 friend class SkGradientShader; | 53 friend class SkGradientShader; |
| 51 typedef SkGradientShaderBase INHERITED; | 54 typedef SkGradientShaderBase INHERITED; |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 #endif | 57 #endif |
| OLD | NEW |