Index: include/effects/SkColorMatrix.h |
diff --git a/include/effects/SkColorMatrix.h b/include/effects/SkColorMatrix.h |
index 84a3b7c4970efff02dcd7a7a881a91948876e412..8ff45f9277289b02fd6b2776dd120bb05ee9d4a6 100644 |
--- a/include/effects/SkColorMatrix.h |
+++ b/include/effects/SkColorMatrix.h |
@@ -14,6 +14,18 @@ class SK_API SkColorMatrix { |
public: |
SkScalar fMat[20]; |
+ enum Elem { |
+ kR_Scale = 0, |
+ kG_Scale = 6, |
+ kB_Scale = 12, |
+ kA_Scale = 18, |
+ |
+ kR_Trans = 4, |
+ kG_Trans = 9, |
+ kB_Trans = 14, |
+ kA_Trans = 19, |
+ }; |
+ |
void setIdentity(); |
void setScale(SkScalar rScale, SkScalar gScale, SkScalar bScale, |
SkScalar aScale = SK_Scalar1); |
@@ -21,6 +33,8 @@ public: |
SkScalar aScale = SK_Scalar1); |
void postScale(SkScalar rScale, SkScalar gScale, SkScalar bScale, |
SkScalar aScale = SK_Scalar1); |
+ void postTranslate(SkScalar rTrans, SkScalar gTrans, SkScalar bTrans, |
+ SkScalar aTrans = 0); |
enum Axis { |
kR_Axis = 0, |