Index: include/gpu/GrEffectStage.h |
=================================================================== |
--- include/gpu/GrEffectStage.h (revision 9486) |
+++ include/gpu/GrEffectStage.h (working copy) |
@@ -166,7 +166,7 @@ |
SkSafeUnref(oldEffectRef); |
} |
- bool isEqual(const GrEffectStage& stage) const { |
+ bool isEqual(const GrEffectStage& stage, bool ignoreCoordChange) const { |
if (NULL == stage.fEffectRef) { |
return NULL == fEffect; |
} else if (NULL == fEffect) { |
@@ -182,6 +182,12 @@ |
return false; |
} |
+ if (ignoreCoordChange) { |
+ // ignore the coordinate change matrix since there are |
+ // explicit uv coordinates |
+ return true; |
+ } |
+ |
if (fCoordChangeMatrixSet != stage.fCoordChangeMatrixSet) { |
return false; |
} |