OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 The Android Open Source Project |
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 | 9 |
10 #ifndef SkColorShader_DEFINED | 10 #ifndef SkColorShader_DEFINED |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 }; | 50 }; |
51 | 51 |
52 // we return false for this, use asAGradient | 52 // we return false for this, use asAGradient |
53 virtual BitmapType asABitmap(SkBitmap* outTexture, | 53 virtual BitmapType asABitmap(SkBitmap* outTexture, |
54 SkMatrix* outMatrix, | 54 SkMatrix* outMatrix, |
55 TileMode xy[2]) const SK_OVERRIDE; | 55 TileMode xy[2]) const SK_OVERRIDE; |
56 | 56 |
57 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; | 57 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; |
58 | 58 |
59 virtual bool asNewEffect(GrContext* context, const SkPaint& paint, | 59 virtual bool asNewEffect(GrContext* context, const SkPaint& paint, |
60 const SkMatrix* localMatrix, GrColor* grColor, | 60 const SkMatrix* localMatrix, GrColor* paintColor, |
61 GrEffect** grEffect) const SK_OVERRIDE; | 61 GrEffect** effect) const SK_OVERRIDE; |
62 | 62 |
63 SK_TO_STRING_OVERRIDE() | 63 SK_TO_STRING_OVERRIDE() |
64 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader) | 64 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader) |
65 | 65 |
66 protected: | 66 protected: |
67 SkColorShader(SkReadBuffer&); | 67 SkColorShader(SkReadBuffer&); |
68 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 68 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
69 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 69 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
70 | 70 |
71 private: | 71 private: |
72 SkColor fColor; // ignored if fInheritColor is true | 72 SkColor fColor; // ignored if fInheritColor is true |
73 | 73 |
74 typedef SkShader INHERITED; | 74 typedef SkShader INHERITED; |
75 }; | 75 }; |
76 | 76 |
77 #endif | 77 #endif |
OLD | NEW |