Index: src/gpu/GrQuad.h |
diff --git a/src/gpu/GrQuad.h b/src/gpu/GrQuad.h |
index 9a8d1f3a4a37a1d421b83ceb52700ce593a0391d..73464645c014a201517f2f1865305383595991f5 100644 |
--- a/src/gpu/GrQuad.h |
+++ b/src/gpu/GrQuad.h |
@@ -10,6 +10,7 @@ |
#include "SkPoint.h" |
#include "SkMatrix.h" |
+#include "SkMatrixPriv.h" |
/** |
* GrQuad is a collection of 4 points which can be used to represent an arbitrary quadrilateral |
@@ -35,8 +36,7 @@ public: |
} |
void setFromMappedRect(const SkRect& rect, const SkMatrix& matrix) { |
- this->set(rect); |
- matrix.mapPoints(fPoints, kNumPoints); |
+ SkMatrixPriv::SetMappedRectFan(matrix, fPoints, rect); |
} |
const GrQuad& operator=(const GrQuad& that) { |