| 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 16 matching lines...) Expand all Loading... |
| 27 private: | 27 private: |
| 28 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED; | 28 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 virtual BitmapType asABitmap(SkBitmap* bitmap, | 31 virtual BitmapType asABitmap(SkBitmap* bitmap, |
| 32 SkMatrix* matrix, | 32 SkMatrix* matrix, |
| 33 TileMode* xy) const SK_OVERRIDE; | 33 TileMode* xy) const SK_OVERRIDE; |
| 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 asNewEffect(GrContext*, const SkPaint&, const SkMatrix*, GrColo
r*, GrEffect**) | 37 virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*
, GrColor*, |
| 38 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 | 44 #ifdef SK_SUPPORT_LEGACY_DEEPFLATTENING |
| 45 SkSweepGradient(SkReadBuffer& buffer); | 45 SkSweepGradient(SkReadBuffer& buffer); |
| 46 #endif | 46 #endif |
| 47 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; | 47 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; |
| 48 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 48 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 const SkPoint fCenter; | 51 const SkPoint fCenter; |
| 52 | 52 |
| 53 friend class SkGradientShader; | 53 friend class SkGradientShader; |
| 54 typedef SkGradientShaderBase INHERITED; | 54 typedef SkGradientShaderBase INHERITED; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif | 57 #endif |
| OLD | NEW |