Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(500)

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

Issue 6941068: add threadSafeClone() to SkFlattenable, and implement for shaders Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
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/SkLinearGradient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/gradients/SkGradientShaderPriv.h
===================================================================
--- src/effects/gradients/SkGradientShaderPriv.h (revision 6883)
+++ src/effects/gradients/SkGradientShaderPriv.h (working copy)
@@ -138,6 +138,8 @@
protected:
SkGradientShaderBase(SkFlattenableReadBuffer& );
+ SkGradientShaderBase(const SkGradientShaderBase&,
+ SkThreadSafeClone_Constructor);
virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
SkUnitMapper* fMapper;
@@ -184,6 +186,9 @@
void setCacheAlpha(U8CPU alpha) const;
void initCommon();
+ void init(const SkColor colors[], const SkScalar pos[], int colorCount,
+ TileMode mode, SkUnitMapper* mapper);
+
typedef SkShader INHERITED;
};
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | src/effects/gradients/SkLinearGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b