Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: src/effects/gradients/SkGradientShaderPriv.h

Issue 227623004: Add flipped gradient branch to two point conical gradient (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Pdf fix Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698