| 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 | |
| 47 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; | 44 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; |
| 48 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 45 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
| 49 | 46 |
| 50 private: | 47 private: |
| 51 const SkPoint fCenter; | 48 const SkPoint fCenter; |
| 52 | 49 |
| 53 friend class SkGradientShader; | 50 friend class SkGradientShader; |
| 54 typedef SkGradientShaderBase INHERITED; | 51 typedef SkGradientShaderBase INHERITED; |
| 55 }; | 52 }; |
| 56 | 53 |
| 57 #endif | 54 #endif |
| OLD | NEW |