| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual BitmapType asABitmap(SkBitmap* outTexture, | 45 virtual BitmapType asABitmap(SkBitmap* outTexture, |
| 46 SkMatrix* outMatrix, | 46 SkMatrix* outMatrix, |
| 47 TileMode xy[2]) const SK_OVERRIDE; | 47 TileMode xy[2]) const SK_OVERRIDE; |
| 48 | 48 |
| 49 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; | 49 virtual GradientType asAGradient(GradientInfo* info) const SK_OVERRIDE; |
| 50 | 50 |
| 51 SK_DEVELOPER_TO_STRING() | 51 SK_DEVELOPER_TO_STRING() |
| 52 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader) | 52 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkColorShader) |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 SkColorShader(SkFlattenableReadBuffer&); | 55 SkColorShader(SkReadBuffer&); |
| 56 virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; | 56 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 | 59 |
| 60 SkColor fColor; // ignored if fInheritColor is true | 60 SkColor fColor; // ignored if fInheritColor is true |
| 61 SkPMColor fPMColor; // cached after setContext() | 61 SkPMColor fPMColor; // cached after setContext() |
| 62 uint32_t fFlags; // cached after setContext() | 62 uint32_t fFlags; // cached after setContext() |
| 63 uint16_t fColor16; // cached after setContext() | 63 uint16_t fColor16; // cached after setContext() |
| 64 SkBool8 fInheritColor; | 64 SkBool8 fInheritColor; |
| 65 | 65 |
| 66 typedef SkShader INHERITED; | 66 typedef SkShader INHERITED; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif | 69 #endif |
| OLD | NEW |