| 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 asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*
, GrColor*, | 37 virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&
viewM, |
| 38 const SkMatrix*, GrColor*, |
| 38 GrFragmentProcessor**) const SK_OVERRIDE; | 39 GrFragmentProcessor**) const SK_OVERRIDE; |
| 39 | 40 |
| 40 SK_TO_STRING_OVERRIDE() | 41 SK_TO_STRING_OVERRIDE() |
| 41 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSweepGradient) | 42 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkSweepGradient) |
| 42 | 43 |
| 43 protected: | 44 protected: |
| 44 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; | 45 virtual void flatten(SkWriteBuffer& buffer) const SK_OVERRIDE; |
| 45 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 46 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 const SkPoint fCenter; | 49 const SkPoint fCenter; |
| 49 | 50 |
| 50 friend class SkGradientShader; | 51 friend class SkGradientShader; |
| 51 typedef SkGradientShaderBase INHERITED; | 52 typedef SkGradientShaderBase INHERITED; |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 #endif | 55 #endif |
| OLD | NEW |