Index: include/gpu/GrEffectStage.h |
diff --git a/include/gpu/GrEffectStage.h b/include/gpu/GrEffectStage.h |
index 6df7f90d6334a6d965151d36fa6e4f492c1347fc..eca22d7b68dfaf23ecfa0e51d065e947739ed38d 100644 |
--- a/include/gpu/GrEffectStage.h |
+++ b/include/gpu/GrEffectStage.h |
@@ -128,6 +128,17 @@ public: |
} |
} |
+ /* |
+ * an overload of the above but compensates for the usage of explicit local coords |
+ */ |
+ const SkMatrix& getCoordChangeMatrix(bool explicitLocalCoords) const { |
+ if (explicitLocalCoords) { |
+ return SkMatrix::I(); |
+ } else { |
+ return this->getCoordChangeMatrix(); |
+ } |
+ } |
+ |
const GrEffect* getEffect() const { return fEffect.get(); } |
void convertToPendingExec() { fEffect.convertToPendingExec(); } |