Chromium Code Reviews| Index: src/effects/gradients/SkGradientShaderPriv.h |
| diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h |
| index 8bc030f88848bd07631f5afd21206b3eb83b68c5..8ef4c9d528633acffa68b6d6226ffedbec851b4a 100644 |
| --- a/src/effects/gradients/SkGradientShaderPriv.h |
| +++ b/src/effects/gradients/SkGradientShaderPriv.h |
| @@ -166,7 +166,15 @@ protected: |
| const uint16_t* getCache16() const; |
| const SkPMColor* getCache32() const; |
| - void commonAsAGradient(GradientInfo*) const; |
| + void commonAsAGradient(GradientInfo*, bool flipGrad = false) const; |
| + |
| + // Flip the Takes in Color info for src which contains count colors at the start |
|
bsalomon
2014/04/18 14:31:45
Flip the Takes?
|
| + // followed by count Recs (Recs only included if count > 2). It will then flip all the |
| + // color information and return in dst. |
| + // Assumes space has been already correctly allocated for the dst |
| + static void FlipGradientColors(SkColor* colorDst, Rec* recDst, |
| + SkColor* colorSrc, Rec* recSrc, |
| + int count); |
| // V23_COMPATIBILITY_CODE |
| // Used for 2-pt conical gradients since we sort start/end cirlces by radius |