Index: src/gpu/GrPathProcessor.cpp |
diff --git a/src/gpu/GrPathProcessor.cpp b/src/gpu/GrPathProcessor.cpp |
index fe01e7f2dd232589dc5a1581ce513400eab6cac1..a6d1e27c2414791a18ae44c2299e8768c5b762ff 100644 |
--- a/src/gpu/GrPathProcessor.cpp |
+++ b/src/gpu/GrPathProcessor.cpp |
@@ -13,7 +13,8 @@ |
GrPathProcessor::GrPathProcessor(GrColor color, |
const SkMatrix& viewMatrix, |
const SkMatrix& localMatrix) |
- : INHERITED(viewMatrix, localMatrix, true) |
+ : INHERITED(localMatrix, true) |
+ , fViewMatrix(viewMatrix) |
, fColor(color) { |
this->initClassID<GrPathProcessor>(); |
} |
@@ -48,7 +49,8 @@ bool GrPathProcessor::canMakeEqual(const GrBatchTracker& m, |
return false; |
} |
- if (!this->viewMatrix().cheapEqualTo(that.viewMatrix())) { |
+ const GrPathProcessor& other = that.cast<GrPathProcessor>(); |
+ if (!this->viewMatrix().cheapEqualTo(other.viewMatrix())) { |
return false; |
} |